[game-data-packager] 01/03: RTCW: because a file descriptor is a terrible thing to waste
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Tue Oct 27 13:56:05 UTC 2015
This is an automated email from the git hooks/post-receive script.
detiste-guest pushed a commit to branch master
in repository game-data-packager.
commit 940d74073e179532407fdebc484e65a263b47856
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Tue Oct 27 14:24:57 2015 +0100
RTCW: because a file descriptor is a terrible thing to waste
---
game_data_packager/games/rtcw.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/game_data_packager/games/rtcw.py b/game_data_packager/games/rtcw.py
index a171d7a..60ceb75 100644
--- a/game_data_packager/games/rtcw.py
+++ b/game_data_packager/games/rtcw.py
@@ -41,9 +41,9 @@ class RTCWTask(PackagingTask):
zip_out = os.path.join(libdir, 'sp_pak5.pk3')
with zipfile.ZipFile(zip_in, 'r') as zf_in:
- with zipfile.ZipFile(zip_out, 'w') as zf_out:
- txt = zf_in.open('text/EnglishUSA/escape1.txt').read()
- zf_out.writestr('text/EnglishUSA/escape1.txt', txt)
+ txt = zf_in.open('text/EnglishUSA/escape1.txt').read()
+ with zipfile.ZipFile(zip_out, 'w') as zf_out:
+ zf_out.writestr('text/EnglishUSA/escape1.txt', txt)
return True
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git
More information about the Pkg-games-commits
mailing list