summaryrefslogtreecommitdiff
path: root/numpy/lib/npyio.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r--numpy/lib/npyio.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py
index 078c6d7ca..0cf627e7c 100644
--- a/numpy/lib/npyio.py
+++ b/numpy/lib/npyio.py
@@ -798,7 +798,7 @@ def loadtxt(fname, dtype=float, comments='#', delimiter=None,
Examples
--------
- >>> from StringIO import StringIO # StringIO behaves like a file object
+ >>> from io import StringIO # StringIO behaves like a file object
>>> c = StringIO("0 1\\n2 3")
>>> np.loadtxt(c)
array([[ 0., 1.],
@@ -1420,7 +1420,7 @@ def genfromtxt(fname, dtype=float, comments='#', delimiter=None,
Examples
---------
- >>> from StringIO import StringIO
+ >>> from io import StringIO
>>> import numpy as np
Comma delimited file with mixed dtype