summaryrefslogtreecommitdiff
path: root/numpy/core/records.py
diff options
context:
space:
mode:
authornjsmith <njs@pobox.com>2013-04-08 12:04:07 -0700
committernjsmith <njs@pobox.com>2013-04-08 12:04:07 -0700
commitf85bdf48aadf7b5a5f575370b589805fed190a6c (patch)
treec84a165c4b3d10421744785ffe2803bc069b09ea /numpy/core/records.py
parent01aa27a436476d87c4d986a80225d23179eebb44 (diff)
parent011f8a20044a3982b2441cb53876e9689a3f6d0c (diff)
downloadnumpy-f85bdf48aadf7b5a5f575370b589805fed190a6c.tar.gz
Merge pull request #3208 from charris/2to3-apply-repr-fixer
2to3: Apply `repr` fixer.
Diffstat (limited to 'numpy/core/records.py')
-rw-r--r--numpy/core/records.py4
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]