Kaydet (Commit) fb067468 authored tarafından Florent Xicluna's avatar Florent Xicluna

Flatten nested try ... finally, try ... except.

üst 49ab14f4
......@@ -1674,12 +1674,11 @@ class XMLParser:
except self._error as v:
self._raiseerror(v)
try:
try:
close_handler = self.target.close
except AttributeError:
pass
else:
return close_handler()
close_handler = self.target.close
except AttributeError:
pass
else:
return close_handler()
finally:
# get rid of circular references
del self.parser, self._parser
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment