Commits

Mikhail Korobov committed 9baa05d

python 2.6 fix

  • Participants
  • Parent commits 0cdc172

Comments (0)

Files changed (1)

File psd_tools/utils.py

 
 def read_pascal_string(fp, encoding, padding=1):
     length = pad(read_fmt("B", fp)[0], padding)
-    return fp.read(length).decode(encoding, errors='replace')
+    return fp.read(length).decode(encoding, 'replace')
 
 def read_unicode_string(fp):
     num_chars = read_fmt("I", fp)[0]