From c75cc9e4e602dbf58f72df76422355588c55c759 Mon Sep 17 00:00:00 2001 From: MinRK Date: Sat, 14 Apr 2012 16:04:43 -0700 Subject: [PATCH] py3compat._modify_str_or_docstring should check against basestring --- IPython/utils/py3compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/utils/py3compat.py b/IPython/utils/py3compat.py index 2c9df7c3998..b6c27f9d27c 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: