mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Remove functions in string module that are also string methods. Also remove:
* all calls to functions in the string module (except maketrans) * everything from stropmodule except for maketrans() which is still used
This commit is contained in:
parent
ff11334927
commit
9d72bb452b
69 changed files with 396 additions and 2113 deletions
|
@ -31,7 +31,6 @@ Each function will be called at most once for each event.
|
|||
|
||||
import sys
|
||||
import os
|
||||
import string
|
||||
import re
|
||||
import Tkinter
|
||||
|
||||
|
@ -244,7 +243,7 @@ def _parse_sequence(sequence):
|
|||
"""
|
||||
if not sequence or sequence[0] != '<' or sequence[-1] != '>':
|
||||
return None
|
||||
words = string.split(sequence[1:-1], '-')
|
||||
words = '-'.split(sequence[1:-1])
|
||||
|
||||
modifiers = 0
|
||||
while words and words[0] in _modifier_names:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue