We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 146ee99 + 6a04c2c commit 359017fCopy full SHA for 359017f
pandas/io/common.py
@@ -61,7 +61,7 @@ def _is_url(url):
61
def _is_s3_url(url):
62
"""Check for an s3 url"""
63
try:
64
- return urlparse.urlparse(url).scheme == 's3'
+ return parse_url(url).scheme == 's3'
65
except:
66
return False
67
pandas/io/tests/test_data.py
@@ -332,6 +332,10 @@ def test_get_put_data_warning(self):
332
333
334
class TestDataReader(unittest.TestCase):
335
+ def test_is_s3_url(self):
336
+ from pandas.io.common import _is_s3_url
337
+ self.assert_(_is_s3_url("s3://pandas/somethingelse.com"))
338
+
339
@network
340
def test_read_yahoo(self):
341
gs = DataReader("GS", "yahoo")
0 commit comments