diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2012-08-28 15:08:41 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2012-08-28 15:08:41 +0400 |
commit | 4003b1b452df9dc615228677b9399e775cfc3389 (patch) | |
tree | a58b92d2497e099712e9c23cd0082a991836b331 | |
parent | cb926cedf3538e9c9ee6d94cee088b7ecf213c81 (diff) |
correctly close tmppng file
-rw-r--r-- | latex/latex.py | 3 | ||||
-rw-r--r-- | latex/manifest.ini | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/latex/latex.py b/latex/latex.py index 4a24daa..ecfb504 100644 --- a/latex/latex.py +++ b/latex/latex.py @@ -154,7 +154,8 @@ class LatexRenderer(Thread): try: tmpdir = mkdtemp(prefix='gajim_tex') - tmppng = mkstemp(prefix='gajim_tex', suffix='.png')[1] + tmpfd, tmppng = mkstemp(prefix='gajim_tex', suffix='.png') + tmpfd.close() except Exception: msg = 'Could not create temporary files for Latex plugin' log.debug(msg) diff --git a/latex/manifest.ini b/latex/manifest.ini index 2c8e925..e5e15d8 100644 --- a/latex/manifest.ini +++ b/latex/manifest.ini @@ -1,7 +1,7 @@ [info] name: Latex short_name: latex -version: 0.1.1 +version: 0.1.2 description: render received latex code authors: Yves Fischer <yvesf@xapek.org> Yann Leboulanger <asterix@lagaule.org> |