mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Get rid of many apply() calls.
This commit is contained in:
parent
f389c77273
commit
68468eba63
38 changed files with 85 additions and 91 deletions
|
|
@ -505,7 +505,7 @@ class RegexObject:
|
|||
self.pattern = statetuple[0]
|
||||
self.flags = statetuple[1]
|
||||
self.groupindex = statetuple[2]
|
||||
self.code = apply(pcre_compile, statetuple)
|
||||
self.code = pcre_compile(*statetuple)
|
||||
|
||||
class _Dummy:
|
||||
# Dummy class used by _subn_string(). Has 'group' to avoid core dump.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue