Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: fix range error for missing module 'past' #156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Scripts/fontbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# LICENSE: MIT
# vim: sts=4 sw=4 ts=4 et

from past.builtins import xrange

import fontforge
from itertools import compress
import os
Expand Down Expand Up @@ -72,9 +70,9 @@ def permutations():
bitmap_max = 1 << count

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

Expand Down