From 1ad0311a1d3d4b30c844cf2170d9a910b0e5c5ee Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Tue, 29 Mar 2011 17:17:24 +0200 Subject: BUG: make correlate/convolve work also with unicode mode arg. Closes #1705. --- numpy/core/numeric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/numeric.py') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index dce617846..74b8ba8a4 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -587,7 +587,7 @@ _mode_from_name_dict = {'v': 0, 'f' : 2} def _mode_from_name(mode): - if isinstance(mode, type("")): + if isinstance(mode, basestring): return _mode_from_name_dict[mode.lower()[0]] return mode -- cgit v1.2.1