mirror of
https://github.com/python/cpython
synced 2024-10-14 09:43:55 +00:00
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 has_key(self, key):
|
||||
value = riscos.getenv(key)
|
||||
return value<>None
|
||||
return value != None
|
||||
def __contains__(self, key):
|
||||
return riscos.getenv(key) is not None
|
||||
def update(self, dict):
|
||||
|
|
|
@ -39,7 +39,7 @@ def url2pathname(url):
|
|||
elif components[i] == '..':
|
||||
components[i] = '^'
|
||||
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]
|
||||
else:
|
||||
i += 1
|
||||
|
|
Loading…
Reference in a new issue