[Python-checkins] r52284 - sandbox/trunk/import_in_py/importer.py

brett.cannon python-checkins at python.org
Wed Oct 11 20:48:47 CEST 2006


Author: brett.cannon
Date: Wed Oct 11 20:48:46 2006
New Revision: 52284

Modified:
   sandbox/trunk/import_in_py/importer.py
Log:
Open source files in the source code handler with 'rU'.


Modified: sandbox/trunk/import_in_py/importer.py
==============================================================================
--- sandbox/trunk/import_in_py/importer.py	(original)
+++ sandbox/trunk/import_in_py/importer.py	Wed Oct 11 20:48:46 2006
@@ -185,7 +185,7 @@
         'module'."""
         module.__file__ = file_path
         module.__name__ = fullname
-        with open(file_path) as source_file:
+        with open(file_path, 'rU') as source_file:
             source_code = source_file.read()
         compiled_code = compile(source_code, file_path, 'exec')
         exec compiled_code in module.__dict__


More information about the Python-checkins mailing list