summaryrefslogtreecommitdiff
path: root/numpy/ma/core.py
diff options
context:
space:
mode:
authorpierregm <pierregm@localhost>2009-06-29 16:10:11 +0000
committerpierregm <pierregm@localhost>2009-06-29 16:10:11 +0000
commitdfd3b749cb4c423ea4c211044f34d36bc07218ba (patch)
treed9d24c6bca53bb874f28d5718a9432f5b7905db4 /numpy/ma/core.py
parent0a02520361fced5ca1239930a61bef04d06f3743 (diff)
downloadnumpy-dfd3b749cb4c423ea4c211044f34d36bc07218ba.tar.gz
* Bugfix #1129. Thanks to Reggie.
Diffstat (limited to 'numpy/ma/core.py')
-rw-r--r--numpy/ma/core.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py
index 65e44673c..105dd30ec 100644
--- a/numpy/ma/core.py
+++ b/numpy/ma/core.py
@@ -4582,12 +4582,13 @@ class MaskedArray(ndarray):
purposes.
"""
+ cf = 'CF'[self.flags.fnc]
state = (1,
self.shape,
self.dtype,
self.flags.fnc,
- self._data.tostring(),
- getmaskarray(self).tostring(),
+ self._data.tostring(cf),
+ getmaskarray(self).tostring(cf),
self._fill_value,
)
return state