diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-11-29 17:53:44 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-11-29 17:53:44 +0000 |
| commit | 5beb07856e17642f60d93730ba4a95fd60859fca (patch) | |
| tree | 6a3cde82a8af1d5607c08fb0f83b058f311ec272 /dev-python/translate-toolkit/files | |
| parent | c887f3157c11df7986e5987054bde36ca90981b6 (diff) | |
| download | srcux-5beb07856e17642f60d93730ba4a95fd60859fca.tar.gz srcux-5beb07856e17642f60d93730ba4a95fd60859fca.tar.xz srcux-5beb07856e17642f60d93730ba4a95fd60859fca.zip | |
Adding metadata
Diffstat (limited to 'dev-python/translate-toolkit/files')
| -rw-r--r-- | dev-python/translate-toolkit/files/translate-toolkit-3.10.1-py312.patch | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/dev-python/translate-toolkit/files/translate-toolkit-3.10.1-py312.patch b/dev-python/translate-toolkit/files/translate-toolkit-3.10.1-py312.patch deleted file mode 100644 index da0fd91520aa..000000000000 --- a/dev-python/translate-toolkit/files/translate-toolkit-3.10.1-py312.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 3217ed10bb9371ff25cb04e194e0250d42f89206 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= <michal@cihar.com> -Date: Tue, 7 Nov 2023 08:42:56 +0100 -Subject: [PATCH] optrecurse: properly close opened files - -This avoids leaking file descriptors in the tests and makes sure the -content is written at the end of conversion. - -Fixes #5071 ---- - translate/misc/optrecurse.py | 9 ++++++++- - 1 file changed, 8 insertions(+), 1 deletion(-) - -diff --git a/translate/misc/optrecurse.py b/translate/misc/optrecurse.py -index d69666b8e8..9337c7c4ff 100644 ---- a/translate/misc/optrecurse.py -+++ b/translate/misc/optrecurse.py -@@ -684,10 +684,17 @@ def processfile( - tempoutput = False - templatefile = self.opentemplatefile(options, fulltemplatepath) - passthroughoptions = self.getpassthroughoptions(options) -- if fileprocessor(inputfile, outputfile, templatefile, **passthroughoptions): -+ result = fileprocessor( -+ inputfile, outputfile, templatefile, **passthroughoptions -+ ) -+ if fullinputpath is not None: -+ inputfile.close() -+ if result: - if tempoutput: - self.warning("writing to temporary output...") - self.finalizetempoutputfile(options, outputfile, fulloutputpath) -+ if fulloutputpath and os.path.isfile(fulloutputpath): -+ outputfile.close() - return True - else: - # remove the file if it is a file (could be stdout etc) |
