Project

General

Profile

Patch #939 » exiv2-svn-python3-compatible.patch

patch against r3210 - Alex Turbov, 20 Dec 2013 18:09

View differences:

doc/templates/gen.py (working copy)
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)
website/bin/gen.py (working copy)
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)
(3-3/5)