Commit f84f2ed 1 parent a331c7c commit f84f2ed Copy full SHA for f84f2ed
File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python2.7
2
2
# vim: sts=4 sw=4 ts=4 et
3
3
4
+ from __future__ import print_function
4
5
import sys
5
6
if len (sys .argv ) < 4 :
6
7
usage = """Build should be run with 3 arguments:
9
10
Second: The parallel batch number (0+)
10
11
Third: The .sfdir for the font
11
12
"""
12
- print >> sys .stderr , usage
13
+ print ( usage , file = sys .stderr )
13
14
exit (1 )
14
15
15
16
from fontbuilder import *
Original file line number Diff line number Diff line change @@ -58,9 +58,9 @@ def permutations():
58
58
bitmap_max = 1 << count
59
59
60
60
# Iterate over all possible permutations
61
- for i in xrange (bitmap_max ):
61
+ for i in range (bitmap_max ):
62
62
# 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 )]
64
64
for opts in _expand_options (bitmap ):
65
65
yield (int (float (i )/ bitmap_max * 100 ), opts )
66
66
You can’t perform that action at this time.
0 commit comments