Commit 755f75ee authored by Michael W. Hudson's avatar Michael W. Hudson

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

parent 7b7ba540
......@@ -267,7 +267,7 @@ def getdoc(object):
doc = object.__doc__
except AttributeError:
return None
if not isinstance(doc, (str, unicode)):
if not isinstance(doc, types.StringTypes):
return None
try:
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