Skip to content

Commit ea42677

Browse files
authored
Merge pull request larsenwork#233 from jtojnar/py3
2 parents 38a688b + f84f2ed commit ea42677

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Scripts/build.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python2.7
22
# vim: sts=4 sw=4 ts=4 et
33

4+
from __future__ import print_function
45
import sys
56
if len(sys.argv) < 4:
67
usage = """Build should be run with 3 arguments:
@@ -9,7 +10,7 @@
910
Second: The parallel batch number (0+)
1011
Third: The .sfdir for the font
1112
"""
12-
print >> sys.stderr, usage
13+
print(usage, file=sys.stderr)
1314
exit(1)
1415

1516
from fontbuilder import *

Scripts/fontbuilder.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ def permutations():
5858
bitmap_max = 1 << count
5959

6060
# Iterate over all possible permutations
61-
for i in xrange(bitmap_max):
61+
for i in range(bitmap_max):
6262
# Map the iteration's permutations using a bitmap
63-
bitmap = [i >> n & 1 for n in xrange(count)]
63+
bitmap = [i >> n & 1 for n in range(count)]
6464
for opts in _expand_options(bitmap):
6565
yield(int(float(i)/bitmap_max*100), opts)
6666

0 commit comments

Comments
 (0)