[pygobject/pygobject-2-28] Revert "dsextras.py: ensure eol characters are preserved when writing template files (so \n does not



commit 99689e2849a9df78980c9d25d9ddabc1e95f1252
Author: John (J5) Palmieri <johnp redhat com>
Date:   Thu Mar 24 12:08:10 2011 -0400

    Revert "dsextras.py: ensure eol characters are preserved when writing template files (so \n does not become \r\n)"
    
    This reverts commit 27496e0e86e7d8798caf019fd09af5c6a30ec633.

 dsextras.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/dsextras.py b/dsextras.py
index b2c9e90..6f8316d 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, 'wb').write(template)
+        open(output, 'w').write(template)
         self.local_inputs.append(filename)
         self.local_outputs.append(output)
         return output



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]