rl_accel.py: fix asciiBase85Encode for python27 py33
authorrobin
Mon, 02 Dec 2013 10:42:16 +0000
branchpy33
changeset 3872 9ee4c5e02995
parent 3871 4b2cdf036fd3
child 3873 73d4262b7edd
rl_accel.py: fix asciiBase85Encode for python27
src/reportlab/lib/rl_accel.py
--- a/src/reportlab/lib/rl_accel.py	Sun Dec 01 11:15:41 2013 +0000
+++ b/src/reportlab/lib/rl_accel.py	Mon Dec 02 10:42:16 2013 +0000
@@ -162,7 +162,7 @@
         This is a compact encoding used for binary data within
         a PDF file.  Four bytes of binary data become five bytes of
         ASCII.  This is the default method used for encoding images."""
-        doOrd = isPy3 and isUnicode(input)
+        doOrd = isPy3 and isUnicode(input) or not isPy3
         # special rules apply if not a multiple of four bytes.
         whole_word_count, remainder_size = divmod(len(input), 4)
         cut = 4 * whole_word_count