Commits

Mikhail Korobov committed 94f4c01 Merge

Merge pull request #6 from pzinovkin/foio

Fix for file objects reading under Python 2.x

Comments (0)

Files changed (2)

 .tox
 build
 *.pyc
+*.so
 MANIFEST

src/psd_tools/utils.py

     Reads an array from a file with big-endian data.
     """
     arr = array.array(str(fmt))
-    arr.fromfile(fp, count)
+    arr.fromstring(fp.read(count * arr.itemsize))
     return fix_byteorder(arr)
 
 def fix_byteorder(arr):