src/reportlab/platypus/paraparser.py
changeset 4077 ac3fcb7cc6f4
parent 4067 712e1822ca31
child 4097 1c2ebf285cb7
--- a/src/reportlab/platypus/paraparser.py	Thu Apr 17 13:07:30 2014 +0100
+++ b/src/reportlab/platypus/paraparser.py	Tue Apr 22 11:39:47 2014 +0100
@@ -1008,9 +1008,10 @@
     #----------------------------------------------------------------
 
     def __init__(self,verbose=0, caseSensitive=0, ignoreUnknownTags=1):
-        HTMLParser.__init__(self)
+        HTMLParser.__init__(self,
+            **(dict(convert_charrefs=False) if sys.version_info>=(3,4) else {}))
         self.verbose = verbose
-        #HTMLParser is cas insenstive anyway, but the rml interface still needs this
+        #HTMLParser is case insenstive anyway, but the rml interface still needs this
         #all start/end_ methods should have a lower case version for HMTMParser
         self.caseSensitive = caseSensitive
         self.ignoreUnknownTags = ignoreUnknownTags