summaryrefslogtreecommitdiff
path: root/numpy/lib/_datasource.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/_datasource.py')
-rw-r--r--numpy/lib/_datasource.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/_datasource.py b/numpy/lib/_datasource.py
index bd69b45f2..0dc744dbc 100644
--- a/numpy/lib/_datasource.py
+++ b/numpy/lib/_datasource.py
@@ -211,14 +211,14 @@ class DataSource (object):
openedurl = urlopen(path)
file(upath, 'w').write(openedurl.read())
except URLError:
- raise URLError("URL not found: ", path)
+ raise URLError("URL not found: %s" % path)
else:
try:
# TODO: Why not just copy the file with shutils.copyfile?
fp = file(path, 'r')
file(upath, 'w').write(fp.read())
except IOError:
- raise IOError("File not found: ", path)
+ raise IOError("File not found: %s" % path)
return upath
def _findfile(self, path):