pull/156/merge
에런 2022-12-02 10:20:22 +00:00 committed by GitHub
commit 5b2dcb9a66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -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
@ -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)