Kaydet (Commit) 7c187bcc authored tarafından Thomas Wouters's avatar Thomas Wouters

Remove redundant isinstance() check.

üst 7f597327
...@@ -158,7 +158,7 @@ def format_exception_only(etype, value): ...@@ -158,7 +158,7 @@ def format_exception_only(etype, value):
""" """
list = [] list = []
if (type(etype) == types.ClassType if (type(etype) == types.ClassType
or (isinstance(etype, type) and issubclass(etype, Exception))): or issubclass(etype, Exception)):
stype = etype.__name__ stype = etype.__name__
else: else:
stype = etype stype = etype
......
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