From 2708316bd337e475770e9af33cd3b62a7aae94e5 2012-04-14 23:04:43 From: MinRK Date: 2012-04-14 23:04:43 Subject: [PATCH] py3compat._modify_str_or_docstring should check against basestring --- diff --git a/IPython/utils/py3compat.py b/IPython/utils/py3compat.py index 2c9df7c..b6c27f9 100644 --- a/IPython/utils/py3compat.py +++ b/IPython/utils/py3compat.py @@ -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: