summaryrefslogtreecommitdiff
path: root/numpy/core/_internal.py
diff options
context:
space:
mode:
authorcgohlke <cgohlke@uci.edu>2012-08-06 16:05:41 -0700
committercgohlke <cgohlke@uci.edu>2012-08-06 16:05:41 -0700
commitd009f0f5f67dc4bad97560487d61fc399cb23c06 (patch)
tree5ffba365449420b321936eb3ed8c7be882f7ee37 /numpy/core/_internal.py
parentfcdbcac4fa300a81e687fe93a956b54e7a6f7db5 (diff)
downloadnumpy-d009f0f5f67dc4bad97560487d61fc399cb23c06.tar.gz
Allow long numbers in numpy.rec.array formats string
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r--numpy/core/_internal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py
index 92ab0c8b0..103418fa2 100644
--- a/numpy/core/_internal.py
+++ b/numpy/core/_internal.py
@@ -133,7 +133,7 @@ def _reconstruct(subtype, shape, dtype):
format_re = re.compile(asbytes(
r'(?P<order1>[<>|=]?)'
- r'(?P<repeats> *[(]?[ ,0-9]*[)]? *)'
+ r'(?P<repeats> *[(]?[ ,0-9L]*[)]? *)'
r'(?P<order2>[<>|=]?)'
r'(?P<dtype>[A-Za-z0-9.]*(?:\[[a-zA-Z0-9,.]+\])?)'))
sep_re = re.compile(asbytes(r'\s*,\s*'))