"""
__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2000-2017 PhiloSoft Design"
__license__ = "GNU GPL"
import sys
root_folder = storage.load()
if report_stats:
- print "Ok"
+ print("Ok")
sys.stdout.write("Writing %s: " % output_filename)
sys.stdout.flush()
for record in transl_db:
transl_d[record["URL2"]] = record["URL1"]
else:
- raise ValueError, "transl (%d) must be 1 or 2" % transl
+ raise ValueError("transl (%d) must be 1 or 2" % transl)
del transl_db # Save few bytes of memory
outfile.close()
if report_stats:
- print "Ok"
+ print("Ok")
if __name__ == '__main__':