Commits

Bertrand Frottier committed 845c146

Another 2to3 related change.

Comments (0)

Files changed (1)

src/simpletotp/__init__.py

     helper function to convert a long number into a byte array
     """
     byte_array = array.array('B')
-    for i in reversed(range(0, 8)):
+    for i in range(7, -1, -1):
         byte_array.insert(0, long_num & 0xff)
         long_num >>= 8
     return byte_array