diff options
author | DasIch <dasdasich@gmail.com> | 2010-08-23 18:18:04 +0200 |
---|---|---|
committer | DasIch <dasdasich@gmail.com> | 2010-08-23 18:18:04 +0200 |
commit | 2274fedf69996bfe3643234020ac6ca07495f992 (patch) | |
tree | 9341f43af35c490f55d8765a6f1433e0853fe1c5 /sphinx/util | |
parent | c3028914ee7a2fc8e82133be4b891aec02d95a92 (diff) | |
download | sphinx-2274fedf69996bfe3643234020ac6ca07495f992.tar.gz |
Make chunks bytestrings
Diffstat (limited to 'sphinx/util')
-rw-r--r-- | sphinx/util/png.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sphinx/util/png.py b/sphinx/util/png.py index ca2273c4..59c32715 100644 --- a/sphinx/util/png.py +++ b/sphinx/util/png.py @@ -12,12 +12,14 @@ import struct import binascii +from sphinx.util.pycompat import b + LEN_IEND = 12 LEN_DEPTH = 22 DEPTH_CHUNK_LEN = struct.pack('!i', 10) -DEPTH_CHUNK_START = 'tEXtDepth\x00' -IEND_CHUNK = '\x00\x00\x00\x00IEND\xAE\x42\x60\x82' +DEPTH_CHUNK_START = b('tEXtDepth\x00') +IEND_CHUNK = b('\x00\x00\x00\x00IEND\xAE\x42\x60\x82') def read_png_depth(filename): |