src/reportlab/lib/rl_accel.py
branchpy33
changeset 3879 991bbd763dbc
parent 3873 73d4262b7edd
child 4002 4bf4b598196e
--- a/src/reportlab/lib/rl_accel.py	Tue Dec 03 13:38:35 2013 +0000
+++ b/src/reportlab/lib/rl_accel.py	Tue Dec 03 13:39:59 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) or not isPy3
+        doOrd =  not isPy3 or isUnicode(input)
         # special rules apply if not a multiple of four bytes.
         whole_word_count, remainder_size = divmod(len(input), 4)
         cut = 4 * whole_word_count