summaryrefslogtreecommitdiff
path: root/numpy/core/_internal.py
diff options
context:
space:
mode:
authorMark Wiebe <mwiebe@enthought.com>2011-07-20 10:01:46 -0500
committerMark Wiebe <mwiebe@enthought.com>2011-07-20 11:31:53 -0500
commita0599794d64d7636b4812bc60bb962380435e7ea (patch)
tree1fedb20990c07d2b7de69c320189b1e6e56f2d00 /numpy/core/_internal.py
parent5590809abed2956ca3e23a71e97d05dcd020a74f (diff)
downloadnumpy-a0599794d64d7636b4812bc60bb962380435e7ea.tar.gz
STY: Updates for pull request feedback from Chuck and Ben
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r--numpy/core/_internal.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py
index 05ba45ad9..0487b320e 100644
--- a/numpy/core/_internal.py
+++ b/numpy/core/_internal.py
@@ -131,7 +131,11 @@ def _reconstruct(subtype, shape, dtype):
# format_re was originally from numarray by J. Todd Miller
-format_re = re.compile(asbytes(r'(?P<order1>[<>|=]?)(?P<repeats> *[(]?[ ,0-9]*[)]? *)(?P<order2>[<>|=]?)(?P<dtype>[A-Za-z0-9.]*(?:\[[a-zA-Z0-9,.]+\])?)'))
+format_re = re.compile(asbytes(
+ r'(?P<order1>[<>|=]?)'
+ r'(?P<repeats> *[(]?[ ,0-9]*[)]? *)'
+ r'(?P<order2>[<>|=]?)'
+ r'(?P<dtype>[A-Za-z0-9.]*(?:\[[a-zA-Z0-9,.]+\])?)'))
sep_re = re.compile(asbytes(r'\s*,\s*'))
space_re = re.compile(asbytes(r'\s+$'))