Commit b9c9034b authored by Ralf Schmitt's avatar Ralf Schmitt

make cython_ifdef.py work on python 2.5

the builtin bin is not available on python 2.5, so don't use it in the
_bin function.
parent e354bc95
......@@ -262,8 +262,7 @@ def pairs(iterable):
def _bin(number, length):
result = bin(number)[2:]
return '0' * (length - len(result)) + result
return "".join([str((number >> shift) & 1) for shift in xrange(length - 1, -1, -1)])
def iter_configurations(symbols):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment