diff options
Diffstat (limited to 'numpy/core/records.py')
-rw-r--r-- | numpy/core/records.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/records.py b/numpy/core/records.py index bcc9c73dc..b263adb6a 100644 --- a/numpy/core/records.py +++ b/numpy/core/records.py @@ -176,7 +176,7 @@ class format_parser: elif (type(names) == str): names = names.split(',') else: - raise NameError("illegal input names %s" % `names`) + raise NameError("illegal input names %s" % repr(names)) self._names = [n.strip() for n in names[:self._nfields]] else: @@ -533,7 +533,7 @@ def fromarrays(arrayList, dtype=None, shape=None, formats=None, raise ValueError("item in the array list must be an ndarray.") formats += _typestr[obj.dtype.type] if issubclass(obj.dtype.type, nt.flexible): - formats += `obj.itemsize` + formats += repr(obj.itemsize) formats += ',' formats = formats[:-1] |