subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From troycurti...@apache.org
Subject svn commit: r1822486 - /subversion/branches/swig-py3/build/generator/gen_base.py
Date Mon, 29 Jan 2018 02:22:16 GMT
Author: troycurtisjr
Date: Mon Jan 29 02:22:16 2018
New Revision: 1822486

URL: http://svn.apache.org/viewvc?rev=1822486&view=rev
Log:
On branch swig-py3: Revert a Python 3 only usage.

* build/generator/gen_base.py
  (IncludeDependencyInfo._scan_for_includes): 
   Drop the Python 3 only "errors" argument to fileinput.hook_encoded().

Modified:
    subversion/branches/swig-py3/build/generator/gen_base.py

Modified: subversion/branches/swig-py3/build/generator/gen_base.py
URL: http://svn.apache.org/viewvc/subversion/branches/swig-py3/build/generator/gen_base.py?rev=1822486&r1=1822485&r2=1822486&view=diff
==============================================================================
--- subversion/branches/swig-py3/build/generator/gen_base.py (original)
+++ subversion/branches/swig-py3/build/generator/gen_base.py Mon Jan 29 02:22:16 2018
@@ -1322,7 +1322,7 @@ class IncludeDependencyInfo:
     values."""
     hdrs = { }
 
-    for line in fileinput.FileInput(fname, openhook=fileinput.hook_encoded("utf-8", "surrogateescape")):
+    for line in fileinput.FileInput(fname, openhook=fileinput.hook_encoded("utf-8")):
       match = self._re_include.match(line)
       if not match:
         continue



Mime
View raw message