summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/userdict.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-11-26 15:44:34 (GMT)
committerGuido van Rossum <guido@python.org>1997-11-26 15:44:34 (GMT)
commit0b23348aa944dcb97c84b34d399c857f039e5773 (patch)
tree88178b09c8a16b93ab1ab174df968a61d36e7293 /Lib/dos-8x3/userdict.py
parent330c660f66243094e082500bc1d760b2b86024cb (diff)
downloadcpython-0b23348aa944dcb97c84b34d399c857f039e5773.zip
cpython-0b23348aa944dcb97c84b34d399c857f039e5773.tar.gz
cpython-0b23348aa944dcb97c84b34d399c857f039e5773.tar.bz2
The usual
Diffstat (limited to 'Lib/dos-8x3/userdict.py')
-rwxr-xr-xLib/dos-8x3/userdict.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/dos-8x3/userdict.py b/Lib/dos-8x3/userdict.py
index 2f4f541..3b9b157 100755
--- a/Lib/dos-8x3/userdict.py
+++ b/Lib/dos-8x3/userdict.py
@@ -26,3 +26,8 @@ class UserDict:
else:
for k, v in other.items():
self.data[k] = v
+ def get(self, key, failobj=None):
+ if self.data.has_key(key):
+ return self.data[key]
+ else:
+ return failobj