paraparser.py:fix start_unichar for puython2 py33
authorrobin
Tue, 10 Dec 2013 14:01:59 +0000
branchpy33
changeset 3937 f685e0de4282
parent 3936 3b7eeda08fd9
child 3938 86f38ebada4b
paraparser.py:fix start_unichar for puython2
src/reportlab/platypus/paraparser.py
--- a/src/reportlab/platypus/paraparser.py	Tue Dec 10 13:59:54 2013 +0000
+++ b/src/reportlab/platypus/paraparser.py	Tue Dec 10 14:01:59 2013 +0000
@@ -759,7 +759,8 @@
                 v = '\0'
         elif 'code' in attr:
             try:
-                v = chr(int(eval(attr['code'])))
+                v = int(eval(attr['code']))
+                v = chr(v) if isPy3 else unichr(v)
             except:
                 self._syntax_error('<unichar/> invalid code attribute %s' % ascii(attr['code']))
                 v = '\0'