mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
String method conversion.
This commit is contained in:
parent
d8c628bd59
commit
fc170b1fd5
19 changed files with 58 additions and 79 deletions
|
@ -1,11 +1,10 @@
|
|||
import ntpath
|
||||
import string
|
||||
import os
|
||||
|
||||
errors = 0
|
||||
|
||||
def tester(fn, wantResult):
|
||||
fn = string.replace(fn, "\\", "\\\\")
|
||||
fn = fn.replace("\\", "\\\\")
|
||||
gotResult = eval(fn)
|
||||
if wantResult != gotResult:
|
||||
print "error!"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue