Bugfix for Issue176: Forms with special characters and a not unix lineending throws exception.

Thu, 26 Mar 2015 22:20:47 +0100

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Thu, 26 Mar 2015 22:20:47 +0100
changeset 4184
6dbd901a8b1a
parent 4183
856ba07de877
child 4186
e2bf1c32272b

Bugfix for Issue176: Forms with special characters and a not unix lineending throws exception.

Utilities/compatibility_fixes.py file | annotate | diff | comparison | revisions
--- a/Utilities/compatibility_fixes.py	Wed Mar 25 20:01:08 2015 +0100
+++ b/Utilities/compatibility_fixes.py	Thu Mar 26 22:20:47 2015 +0100
@@ -10,8 +10,6 @@
 should throw a NotImplementedError exception.
 """
 
-from __future__ import unicode_literals
-
 import __builtin__
 import codecs
 
@@ -58,7 +56,7 @@
         @exception NotImplementedError for not implemented method parameters
         """
         self.__encoding = encoding
-        self.__newline = newline
+        self.__newline = str(newline)
         self.__closefd = closefd
         if newline is not None:
             if 'r' in mode:

eric ide

mercurial