]> granicus.if.org Git - python/commitdiff
Open the source file in universal newline mode.
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 20 Jun 2002 20:42:07 +0000 (20:42 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 20 Jun 2002 20:42:07 +0000 (20:42 +0000)
Mac/Lib/buildtools.py

index d831610b96b543caa235e958a2771efa9ad69c3b..efc5c47eddca1ec5bd039b492d1916ce436b138f 100644 (file)
@@ -78,7 +78,7 @@ def process(template, filename, destname, copy_codefragment,
        # Read the source and compile it
        # (there's no point overwriting the destination if it has a syntax error)
        
-       fp = open(filename)
+       fp = open(filename, 'rU')
        text = fp.read()
        fp.close()
        try: