mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +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
|
@ -22,7 +22,6 @@ used to query various info about the object, if available.
|
|||
(mimetools.Message objects are queried with the getheader() method.)
|
||||
"""
|
||||
|
||||
import string
|
||||
import socket
|
||||
import os
|
||||
import time
|
||||
|
@ -1465,6 +1464,7 @@ def reporthook(blocknum, blocksize, totalsize):
|
|||
|
||||
# Test program
|
||||
def test(args=[]):
|
||||
import string
|
||||
if not args:
|
||||
args = [
|
||||
'/etc/passwd',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue