diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2011-03-22 20:47:51 +0100 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2011-03-24 12:14:18 -0400 |
commit | 4f59bee3a875eb71b8c9adce855b9addc965fe3b (patch) | |
tree | 68f119481232493142621479f3eb38d00af1113d | |
parent | b7a6f884e9ea5946691dd661b79e3094b6e1b34c (diff) | |
download | pygobject-4f59bee3a875eb71b8c9adce855b9addc965fe3b.tar.gz |
dsextras.py: ensure eol characters are preserved when writing template files (so \n does not become \r\n)
-rw-r--r-- | dsextras.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dsextras.py b/dsextras.py index 6f8316d5..b2c9e900 100644 --- a/dsextras.py +++ b/dsextras.py @@ -271,7 +271,7 @@ class InstallData(install_data): output = os.path.join(install_dir, output_file) self.mkpath(install_dir) - open(output, 'w').write(template) + open(output, 'wb').write(template) self.local_inputs.append(filename) self.local_outputs.append(output) return output |