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

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

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Thu, 26 Mar 2015 22:20:47 +0100
branch
6_0_x
changeset 4185
07030b761baf
parent 4181
f9e3b6472b44
child 4188
447bd181896b

Bugfix for Issue176: Forms with special characters and a not unix lineending throws exception.
(grafted from 6dbd901a8b1a7da37a86395468bfe2f4acb15a28)

Utilities/compatibility_fixes.py file | annotate | diff | comparison | revisions
--- a/Utilities/compatibility_fixes.py	Sun Mar 15 18:55:40 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