Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:tools:scm
bzr
python-2_7_13.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-2_7_13.patch of Package bzr
=== modified file 'bzrlib/lazy_regex.py' --- bzrlib/lazy_regex.py 2011-12-19 13:23:58 +0000 +++ bzrlib/lazy_regex.py 2017-01-15 20:36:48 +0000 @@ -131,3 +131,13 @@ raise AssertionError( "re.compile has already been overridden as lazy_compile, but this would" \ " cause infinite recursion") + + +# re.finditer get confused if it receives a LazyRegex +if getattr(re, 'finditer', None is not None): + def finditer_public(pattern, string, flags=0): + if isinstance(pattern, LazyRegex): + return pattern.finditer(string) + else: + return _real_re_compile(pattern, flags).finditer(string) +re.finditer = finditer_public
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor