mirror of
https://github.com/python/cpython.git
synced 2025-12-09 10:37:17 +00:00
Oops. A RISCOS patch I forgot to check in.
This commit is contained in:
parent
5b44a67bdb
commit
a8f7e59761
1 changed files with 7 additions and 1 deletions
|
|
@ -55,7 +55,13 @@ def fcmp(x, y): # fuzzy comparison function
|
||||||
return cmp(len(x), len(y))
|
return cmp(len(x), len(y))
|
||||||
return cmp(x, y)
|
return cmp(x, y)
|
||||||
|
|
||||||
|
import os
|
||||||
|
if os.name !='riscos':
|
||||||
TESTFN = '@test' # Filename used for testing
|
TESTFN = '@test' # Filename used for testing
|
||||||
|
else:
|
||||||
|
TESTFN = 'test' # Filename used for testing
|
||||||
|
del os
|
||||||
|
|
||||||
from os import unlink
|
from os import unlink
|
||||||
|
|
||||||
def findfile(file, here=__file__):
|
def findfile(file, here=__file__):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue