Skip to content

Commit

Permalink
py3compat._modify_str_or_docstring should check against basestring
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Apr 14, 2012
1 parent e3e95c9 commit c75cc9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/utils/py3compat.py
Expand Up @@ -32,7 +32,7 @@ def cast_bytes(s, encoding=None):
def _modify_str_or_docstring(str_change_func):
@functools.wraps(str_change_func)
def wrapper(func_or_str):
if isinstance(func_or_str, str):
if isinstance(func_or_str, basestring):
func = None
doc = func_or_str
else:
Expand Down

0 comments on commit c75cc9e

Please sign in to comment.