Commits

Christian Tismer committed 3ed9483

tiffany version 0.6.3 with yet another little python 3 glitch

Comments (0)

Files changed (3)

 
 setup(
     name = "tiffany",
-    version = "0.6.2",
+    version = "0.6.3",
     author = "Christian Tismer",
     author_email = "tismer@stackless.com",
     description = ("Tiffany -- read/write/arrange any multi-page Tiff, any compression"),

tiffany/__init__.py

 __file__ = os.path.realpath(__file__)
 
 __author__ = "Christian Tismer <tismer@stackless.com>"
-__version__ = "0.6.2"
+__version__ = "0.6.3"
 
 def start_mapper():
     from tiffany.import_mapper import install_mapper, mapped_dir

tiffany/monkeypil.py

                 # enforce type 4, see
                 # http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf
                 ifd.tagtype[tag] = 4  # LONG
-            elif isinstance(value, str):
-                value = value.rstrip('\0')
+            elif isinstance(value, bytes):
+                value = value.rstrip(b'\0')
             ifd[tag] = value
 
         assert stripoffsets and stripbytecounts