Commits

Victor Stinner  committed e4bdb48

Fix bin2long() on Python 2.7

  • Participants
  • Parent commits f45d30c

Comments (0)

Files changed (2)

File hachoir-core/ChangeLog

 hachoir-core 1.3.4
 ==================
 
-XXX
+ * Fix bin2long() on Python 2.7
 
 hachoir-core 1.3.3 (2010-02-26)
 ===============================

File hachoir-core/hachoir_core/bits.py

     bits = [ (ord(character)-ord("0")) \
         for character in text if character in "01" ]
     if endian is not BIG_ENDIAN:
-        bits = reversed(bits)
+        bits = bits[::-1]
     size = len(bits)
     assert 0 < size
     value = 0