From 13550fb943c50feb97d669681e344ac6094e13b9 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 29 Oct 2012 14:05:54 +0100 Subject: [PATCH] Correctly close file opened by mkstemp. Fixes #37 --- latex/latex.py | 2 +- latex/manifest.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/latex/latex.py b/latex/latex.py index ecfb504..b5106e3 100644 --- a/latex/latex.py +++ b/latex/latex.py @@ -155,7 +155,7 @@ class LatexRenderer(Thread): try: tmpdir = mkdtemp(prefix='gajim_tex') tmpfd, tmppng = mkstemp(prefix='gajim_tex', suffix='.png') - tmpfd.close() + os.close(tmpfd) 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 65e3513..cf7fa13 100644 --- a/latex/manifest.ini +++ b/latex/manifest.ini @@ -1,7 +1,7 @@ [info] name: Latex short_name: latex -version: 0.1.3 +version: 0.2 description: render received latex code authors: Yves Fischer Yann Leboulanger