Project

General

Profile

Patch #939 » exiv2-0.23-python3-ready.patch

Alex Turbov, 20 Dec 2013 17:03

View differences:

exiv2-0.23/doc/templates/gen.py 2013-12-21 03:03:54.000000000 +0400
7 7
# ----------------------------------------------------------------------
8 8
# functions
9 9
def usage():
10
   print """Usage: gen.py file.in [...]
10
   print("""Usage: gen.py file.in [...]
11 11
   Substitute placeholders in input files with content
12
   """
12
   """)
13 13

  
14 14
def gen_html(file):
15 15
   """Replace variables in the file with their content"""
......
49 49
vars.sort()
50 50

  
51 51
# Substitute variables in all input files
52
print "Substituting variables", vars
52
print("Substituting variables {0}".format(vars))
53 53
for file in input:
54
   print "Processing", file, "..."
54
   print("Processing {0}...".format(file))
55 55
   text = gen_html(file)
56 56
   file = file.replace(".in", "")
57 57
   open(file, 'w').write(text)
(2-2/5)