Style nits.

This commit is contained in:
Georg Brandl 2009-02-21 23:05:07 +01:00
parent 0c70b1caa0
commit ebb1d85051

View File

@ -24,6 +24,7 @@ try:
except ImportError:
Image = None
class HTMLWriter(Writer):
def __init__(self, builder):
Writer.__init__(self)
@ -305,8 +306,7 @@ class HTMLTranslator(BaseTranslator):
if Image and not (node.has_key('width')
and node.has_key('height')):
try:
im = Image.open(os.path.join(self.builder.srcdir,
olduri))
im = Image.open(os.path.join(self.builder.srcdir, olduri))
except (IOError, # Source image can't be found or opened
UnicodeError): # PIL doesn't like Unicode paths.
pass