From 046b5dedd022f35a8bc8c1b8696b718598348336 Mon Sep 17 00:00:00 2001 From: milde Date: Thu, 7 Jul 2011 06:58:00 +0000 Subject: [PATCH] Do not use ``file`` as a variable name. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7075 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/writers/latex2e/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docutils/writers/latex2e/__init__.py b/docutils/writers/latex2e/__init__.py index cc3471a9e..1b072779c 100644 --- a/docutils/writers/latex2e/__init__.py +++ b/docutils/writers/latex2e/__init__.py @@ -242,12 +242,12 @@ class Writer(writers.Writer): setattr(self, part, getattr(visitor, part)) # get template string from file try: - file = open(self.document.settings.template, 'rb') + template_file = open(self.document.settings.template, 'rb') except IOError: - file = open(os.path.join(self.default_template_path, + template_file = open(os.path.join(self.default_template_path, self.document.settings.template), 'rb') - template = string.Template(unicode(file.read(), 'utf-8')) - file.close() + template = string.Template(unicode(template_file.read(), 'utf-8')) + template_file.close() # fill template self.assemble_parts() # create dictionary of parts self.output = template.substitute(self.parts) -- 2.11.4.GIT