mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +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
|
@ -1,5 +1,5 @@
|
|||
|
||||
import sys, os, string
|
||||
import sys, os
|
||||
import unittest
|
||||
import glob
|
||||
import tempfile
|
||||
|
@ -38,7 +38,7 @@ class dbobjTestCase(unittest.TestCase):
|
|||
class TestDBEnv(dbobj.DBEnv): pass
|
||||
class TestDB(dbobj.DB):
|
||||
def put(self, key, *args, **kwargs):
|
||||
key = string.upper(key)
|
||||
key = key.upper()
|
||||
# call our parent classes put method with an upper case key
|
||||
return dbobj.DB.put(self, key, *args, **kwargs)
|
||||
self.env = TestDBEnv()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue