Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f2c6194e
Commit
f2c6194e
authored
Feb 09, 2001
by
Eric S. Raymond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
String method conversion.
(This one was trivial -- no actual string. references in it!)
parent
9c034cef
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
7 deletions
+5
-7
Lib/test/test_posixpath.py
Lib/test/test_posixpath.py
+0
-1
Lib/test/test_pty.py
Lib/test/test_pty.py
+1
-1
Lib/test/test_pwd.py
Lib/test/test_pwd.py
+1
-2
Lib/test/test_re.py
Lib/test/test_re.py
+1
-1
Lib/test/test_sre.py
Lib/test/test_sre.py
+1
-1
Lib/test/test_userstring.py
Lib/test/test_userstring.py
+1
-1
No files found.
Lib/test/test_posixpath.py
View file @
f2c6194e
import
posixpath
import
posixpath
import
string
errors
=
0
errors
=
0
...
...
Lib/test/test_pty.py
View file @
f2c6194e
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."
...
...
Lib/test/test_pwd.py
View file @
f2c6194e
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):
...
@@ -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
)
...
...
Lib/test/test_re.py
View file @
f2c6194e
...
@@ -3,7 +3,7 @@ sys.path = ['.'] + sys.path
...
@@ -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
...
...
Lib/test/test_sre.py
View file @
f2c6194e
...
@@ -8,7 +8,7 @@ sys.path=['.']+sys.path
...
@@ -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
...
...
Lib/test/test_userstring.py
View file @
f2c6194e
#!/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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment