[ufoai] 03/10: Simplify write operation

Markus Koschany apo-guest at moszumanska.debian.org
Fri Jan 23 17:25:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

apo-guest pushed a commit to branch master
in repository ufoai.

commit 4cc7817b7e778622a9add1ee20fd4c09db50afc2
Author: Markus Koschany <apo at gambaru.de>
Date:   Wed Dec 17 18:58:02 2014 +0100

    Simplify write operation
---
 debian/ufoai_copyright.py | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/debian/ufoai_copyright.py b/debian/ufoai_copyright.py
index abc8971..aa70e04 100755
--- a/debian/ufoai_copyright.py
+++ b/debian/ufoai_copyright.py
@@ -141,20 +141,18 @@ with open(FNAME, encoding="utf-8") as f:
             pass
 
 # Write the converted output into three different copyright files
-with open(COPYRIGHT_FILE_MUSIC, mode="w", encoding="utf-8") as cfile:
-    with open(STANDALONE_LICENSES, encoding="utf-8") as full_license_text:
+with open(STANDALONE_LICENSES, encoding="utf-8") as full_license_text:
+    with open(COPYRIGHT_FILE_MUSIC, mode="w", encoding="utf-8") as cfile:
         cfile.write(header())
         paragraph(music_files, music_authors)
         cfile.write(full_license_text.read())
 
-with open(COPYRIGHT_FILE_DATA, mode="w", encoding="utf-8") as cfile:
-    with open(STANDALONE_LICENSES, encoding="utf-8") as full_license_text:
+    with open(COPYRIGHT_FILE_DATA, mode="w", encoding="utf-8") as cfile:
         cfile.write(header())
         paragraph(data_files, data_authors)
         cfile.write(full_license_text.read())
 
-with open(COPYRIGHT_FILE_MAPS, mode="w", encoding="utf-8") as cfile:
-    with open(STANDALONE_LICENSES, encoding="utf-8") as full_license_text:
+    with open(COPYRIGHT_FILE_MAPS, mode="w", encoding="utf-8") as cfile:
         cfile.write(header())
         paragraph(maps_files, maps_authors)
         cfile.write(full_license_text.read())

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ufoai.git



More information about the Pkg-games-commits mailing list