mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
String method conversion.
(This one was trivial -- no actual string. references in it!)
This commit is contained in:
parent
fc170b1fd5
commit
2846b0ab41
6 changed files with 5 additions and 7 deletions
|
@ -1,5 +1,4 @@
|
||||||
import posixpath
|
import posixpath
|
||||||
import string
|
|
||||||
|
|
||||||
errors = 0
|
errors = 0
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import pty, os, sys, string
|
import pty, os, sys
|
||||||
from test_support import verbose, TestFailed, TestSkipped
|
from test_support import verbose, TestFailed, TestSkipped
|
||||||
|
|
||||||
TEST_STRING_1 = "I wish to buy a fish license."
|
TEST_STRING_1 = "I wish to buy a fish license."
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
from test_support import verbose
|
from test_support import verbose
|
||||||
import pwd
|
import pwd
|
||||||
import string
|
|
||||||
|
|
||||||
print 'pwd.getpwall()'
|
print 'pwd.getpwall()'
|
||||||
entries = pwd.getpwall()
|
entries = pwd.getpwall()
|
||||||
|
@ -50,7 +49,7 @@ while bynames.has_key(fakename):
|
||||||
except IndexError:
|
except IndexError:
|
||||||
# should never happen... if so, just forget it
|
# should never happen... if so, just forget it
|
||||||
break
|
break
|
||||||
fakename = string.join(map(None, chars), '')
|
fakename = ''.join(map(None, chars))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
pwd.getpwnam(fakename)
|
pwd.getpwnam(fakename)
|
||||||
|
|
|
@ -3,7 +3,7 @@ sys.path = ['.'] + sys.path
|
||||||
|
|
||||||
from test_support import verify, verbose, TestFailed
|
from test_support import verify, verbose, TestFailed
|
||||||
import re
|
import re
|
||||||
import sys, os, string, traceback
|
import sys, os, traceback
|
||||||
|
|
||||||
# Misc tests from Tim Peters' re.doc
|
# Misc tests from Tim Peters' re.doc
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ sys.path=['.']+sys.path
|
||||||
|
|
||||||
from test_support import verbose, TestFailed
|
from test_support import verbose, TestFailed
|
||||||
import sre
|
import sre
|
||||||
import sys, os, string, traceback
|
import sys, os, traceback
|
||||||
|
|
||||||
#
|
#
|
||||||
# test support
|
# test support
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import sys, string
|
import sys
|
||||||
from test_support import verbose
|
from test_support import verbose
|
||||||
import string_tests
|
import string_tests
|
||||||
# UserString is a wrapper around the native builtin string type.
|
# UserString is a wrapper around the native builtin string type.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue