From a0599794d64d7636b4812bc60bb962380435e7ea Mon Sep 17 00:00:00 2001 From: Mark Wiebe Date: Wed, 20 Jul 2011 10:01:46 -0500 Subject: STY: Updates for pull request feedback from Chuck and Ben --- numpy/core/_internal.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'numpy') 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[<>|=]?)(?P *[(]?[ ,0-9]*[)]? *)(?P[<>|=]?)(?P[A-Za-z0-9.]*(?:\[[a-zA-Z0-9,.]+\])?)')) +format_re = re.compile(asbytes( + r'(?P[<>|=]?)' + r'(?P *[(]?[ ,0-9]*[)]? *)' + r'(?P[<>|=]?)' + r'(?P[A-Za-z0-9.]*(?:\[[a-zA-Z0-9,.]+\])?)')) sep_re = re.compile(asbytes(r'\s*,\s*')) space_re = re.compile(asbytes(r'\s+$')) -- cgit v1.2.1