Commit f9a0062c authored by Michael W. Hudson's avatar Michael W. Hudson

Use types.StringTypes instead of explicit (str, unicode) list

parent b621ceca
...@@ -267,7 +267,7 @@ def getdoc(object): ...@@ -267,7 +267,7 @@ def getdoc(object):
doc = object.__doc__ doc = object.__doc__
except AttributeError: except AttributeError:
return None return None
if not isinstance(doc, (str, unicode)): if not isinstance(doc, types.StringTypes):
return None return None
try: try:
lines = string.split(string.expandtabs(doc), '\n') lines = string.split(string.expandtabs(doc), '\n')
......
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