Permalink
Browse files

add parenthesis to print statements

  • Loading branch information...
mandel59 committed Apr 18, 2012
1 parent 98bfae6 commit 575fb7163ba64f0a53e6473c2ef2aa1e781abf64
Showing with 12 additions and 12 deletions.
  1. +12 −12 build-ttf.py
View
@@ -57,7 +57,7 @@ def import_svgs(svgdir):
try:
import_svg(svgdir, svgfile)
except Exception, message:
- print message
+ print(message)
def import_kanji(moddir):
for svgdir in os.listdir(moddir):
@@ -151,8 +151,8 @@ def set_bearings(mod):
try:
set_bearings_line(line, charspaces)
except Exception, message:
- print bearings_path, "line:", line_count
- print message
+ print(bearings_path, "line:", line_count)
+ print(message)
fp.close()
def set_vbearings_line(line):
@@ -210,8 +210,8 @@ def set_vert_chars(mod):
try:
set_vbearings_line(line)
except Exception, message:
- print vbearings_path, "line:", line_count
- print message
+ print(vbearings_path, "line:", line_count)
+ print(message)
fp.close()
def set_kernings_line(line):
@@ -242,8 +242,8 @@ def set_kernings(mod):
try:
set_kernings_line(line)
except Exception, message:
- print kernings_path, "line:", line_count
- print message
+ print(kernings_path, "line:", line_count)
+ print(message)
fp.close()
def set_fontnames():
@@ -321,8 +321,8 @@ def set_ccmp():
c.glyphname = t[1]
c.addPosSub('kana semi-voiced table', tuple(t[1].split('_')))
except Exception, message:
- print t
- print message
+ print(t)
+ print(message)
def set_alt_tables():
tag_table = {
@@ -403,9 +403,9 @@ def hex2int(s):
try:
f[name].altuni = tuple(alts)
except Exception, message:
- print altuni_path, line_count
- print message
- print alts
+ print(altuni_path, line_count)
+ print(message)
+ print(alts)
fp.close()
# create font

0 comments on commit 575fb71

Please sign in to comment.