mirror of https://github.com/python/cpython.git
Even more removals of '<>'; I can hear Barry shedding a manly tear ...
This commit is contained in:
parent
f76c3daafe
commit
0fc9139193
|
@ -31,7 +31,7 @@ def items(self): return riscos.getenvdict().items()
|
||||||
def values(self): return riscos.getenvdict().values()
|
def values(self): return riscos.getenvdict().values()
|
||||||
def has_key(self, key):
|
def has_key(self, key):
|
||||||
value = riscos.getenv(key)
|
value = riscos.getenv(key)
|
||||||
return value<>None
|
return value != None
|
||||||
def __contains__(self, key):
|
def __contains__(self, key):
|
||||||
return riscos.getenv(key) is not None
|
return riscos.getenv(key) is not None
|
||||||
def update(self, dict):
|
def update(self, dict):
|
||||||
|
|
|
@ -39,7 +39,7 @@ def url2pathname(url):
|
||||||
elif components[i] == '..':
|
elif components[i] == '..':
|
||||||
components[i] = '^'
|
components[i] = '^'
|
||||||
i += 1
|
i += 1
|
||||||
elif components[i] == '' and i > 0 and components[i-1] <> '':
|
elif components[i] == '' and i > 0 and components[i-1] != '':
|
||||||
del components[i]
|
del components[i]
|
||||||
else:
|
else:
|
||||||
i += 1
|
i += 1
|
||||||
|
|
Loading…
Reference in New Issue