mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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
|
|
@ -21,7 +21,7 @@ def url2pathname(url):
|
|||
url = url[2:]
|
||||
elif url[:2] == '//':
|
||||
raise RuntimeError, 'Cannot convert non-local URL to pathname'
|
||||
components = string.split(url, '/')
|
||||
components = url.split('/')
|
||||
if not components[0]:
|
||||
if '$' in components:
|
||||
del components[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue