Open the source file in universal newline mode.

This commit is contained in:
Jack Jansen 2002-06-20 20:42:07 +00:00
parent f7ce04dcb4
commit 5d0990494e
1 changed files with 1 additions and 1 deletions

View 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: