Skip to content

Commit f981264

Browse files
author
y-p
committed
BUG: _read should accept any basestring
1 parent a9ff644 commit f981264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def _read(cls, filepath_or_buffer, kwds):
156156
if skipfooter is not None:
157157
kwds['skip_footer'] = skipfooter
158158

159-
if isinstance(filepath_or_buffer, str) and _is_url(filepath_or_buffer):
159+
if isinstance(filepath_or_buffer, basestring) and _is_url(filepath_or_buffer):
160160
from urllib2 import urlopen
161161
filepath_or_buffer = urlopen(filepath_or_buffer)
162162
if py3compat.PY3: # pragma: no cover

0 commit comments

Comments
 (0)