summaryrefslogtreecommitdiff
path: root/scipy/base/chararray.py
diff options
context:
space:
mode:
Diffstat (limited to 'scipy/base/chararray.py')
-rw-r--r--scipy/base/chararray.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/scipy/base/chararray.py b/scipy/base/chararray.py
index 0bcc07b54..58b874827 100644
--- a/scipy/base/chararray.py
+++ b/scipy/base/chararray.py
@@ -12,13 +12,12 @@ __all__ = ['chararray']
class chararray(ndarray):
def __new__(subtype, shape, itemlen=1, unicode=False, buffer=None,
- offset=0, strides=None, swap=0, fortran=0):
+ offset=0, strides=None, fortran=0):
if unicode:
dtype = unicode_
else:
dtype = string
- swap = 0
if buffer is None:
self = ndarray.__new__(subtype, shape, (dtype, itemlen),
@@ -27,7 +26,7 @@ class chararray(ndarray):
self = ndarray.__new__(subtype, shape, (dtype, itemlen),
buffer=buffer,
offset=offset, strides=strides,
- swap=swap, fortran=fortran)
+ fortran=fortran)
return self
def _richcmpfunc(self, other, op):
@@ -309,7 +308,7 @@ def array(obj, itemlen=7, copy=True, unicode=False, fortran=False):
obj = obj.copy()
return ndarray.__new__(chararray, obj.shape, (dtype, itemlen),
- buffer=obj, offset=0, swap=obj.flags.swapped,
+ buffer=obj, offset=0,
fortran=obj.flags['FNC'])
if unicode:
@@ -320,7 +319,7 @@ def array(obj, itemlen=7, copy=True, unicode=False, fortran=False):
val = array(obj, dtype=dtype, fortran=fortran, subok=1)
return chararray(val.shape, itemlen, unicode, buffer=val,
- strides=val.strides, swap=val.flags.swapped,
+ strides=val.strides,
fortran=fortran)
def asarray(obj, itemlen=7, unicode=False, fortran=False):