diff options
author | Raymond Hettinger <python@rcn.com> | 2003-01-30 00:56:33 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-01-30 00:56:33 (GMT) |
commit | 0e449234bf8e68dfe96af727e2ce7a53fb4f0dad (patch) | |
tree | d6da9386cefa8adbe0a93b151ce70dbb976c2ed1 /Lib/plat-riscos | |
parent | 61bb35f440773d5c67f4054c5148be299232cba3 (diff) | |
download | cpython-0e449234bf8e68dfe96af727e2ce7a53fb4f0dad.zip cpython-0e449234bf8e68dfe96af727e2ce7a53fb4f0dad.tar.gz cpython-0e449234bf8e68dfe96af727e2ce7a53fb4f0dad.tar.bz2 |
SF patch 672098: Three __contains__ implementations
Contributed by Jp Calderone.
Diffstat (limited to 'Lib/plat-riscos')
-rw-r--r-- | Lib/plat-riscos/riscosenviron.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/plat-riscos/riscosenviron.py b/Lib/plat-riscos/riscosenviron.py index d92aa31..95a2ce5 100644 --- a/Lib/plat-riscos/riscosenviron.py +++ b/Lib/plat-riscos/riscosenviron.py @@ -32,6 +32,8 @@ class _Environ: def has_key(self, key): value = riscos.getenv(key) return value<>None + def __contains__(self, key): + return riscos.getenv(key) is not None def update(self, dict): for k, v in dict.items(): riscos.putenv(k, v) |