Skip to content

Commit 792b005

Browse files
author
y-p
committed
use basestring rather then (str, unicode) in isinstance
1 parent a46d9ce commit 792b005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tseries/tools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _infer(a, b):
3636

3737

3838
def _maybe_get_tz(tz):
39-
if isinstance(tz, (str, unicode)):
39+
if isinstance(tz, basestring):
4040
import pytz
4141
tz = pytz.timezone(tz)
4242
if com.is_integer(tz):

0 commit comments

Comments
 (0)