Commit 38ea166b authored by Stefan Behnel's avatar Stefan Behnel

minor cleanup

parent c5b2f291
...@@ -2888,7 +2888,7 @@ class OptimizeBuiltinCalls(Visitor.MethodDispatcherTransform): ...@@ -2888,7 +2888,7 @@ class OptimizeBuiltinCalls(Visitor.MethodDispatcherTransform):
def _find_special_codec_name(self, encoding): def _find_special_codec_name(self, encoding):
try: try:
requested_codec = codecs.getencoder(encoding) requested_codec = codecs.getencoder(encoding)
except: except LookupError:
return None return None
for name, codec in self._special_codecs: for name, codec in self._special_codecs:
if codec == requested_codec: if codec == requested_codec:
......
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