mirror of
https://github.com/python/cpython.git
synced 2025-11-20 02:50:14 +00:00
bpo-30397: Add re.Pattern and re.Match. (#1646)
This commit is contained in:
parent
8d5a3aad2f
commit
0b5e61ddca
13 changed files with 120 additions and 107 deletions
|
|
@ -74,7 +74,7 @@ class Get_signatureTest(unittest.TestCase):
|
|||
non-overlapping occurrences of the pattern in string by the
|
||||
replacement repl. repl can be either a string or a callable;
|
||||
if a string, backslash escapes in it are processed. If it is
|
||||
a callable, it's passed the match object and must return''')
|
||||
a callable, it's passed the Match object and must return''')
|
||||
gtest(p.sub, '''(repl, string, count=0)\nReturn the string obtained by replacing the leftmost non-overlapping occurrences o...''')
|
||||
|
||||
def test_signature_wrap(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue