summaryrefslogtreecommitdiff
path: root/numpy/lib/_iotools.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2017-11-21 10:10:26 -0700
committerCharles Harris <charlesr.harris@gmail.com>2017-11-24 16:51:53 -0700
commit1d97b3aafdca2722bbe2f0c10a96544121c8f78b (patch)
treed70280d678745fdd419fdd17586336f766f279b6 /numpy/lib/_iotools.py
parentd9ca11117f37d48d07818a3aae3641c023454269 (diff)
downloadnumpy-1d97b3aafdca2722bbe2f0c10a96544121c8f78b.tar.gz
MAINT: Various minor code cleanups.
Minor cleanups of old code to reflect more modern usage.
Diffstat (limited to 'numpy/lib/_iotools.py')
-rw-r--r--numpy/lib/_iotools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/_iotools.py b/numpy/lib/_iotools.py
index b7db77f32..27143e5c6 100644
--- a/numpy/lib/_iotools.py
+++ b/numpy/lib/_iotools.py
@@ -861,8 +861,8 @@ class StringConverter(object):
# Add the missing values to the existing set or clear it.
if missing_values is None:
# Clear all missing values even though the ctor initializes it to
- # {''} when the argument is None.
- self.missing_values = {}
+ # set(['']) when the argument is None.
+ self.missing_values = set()
else:
if not np.iterable(missing_values):
missing_values = [missing_values]