Created
December 9, 2011 20:44
-
-
Save berryp/1453225 to your computer and use it in GitHub Desktop.
bsddb stub
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class DB(object): | |
| def __init__(self, dbenv, *args, **kwargs): | |
| pass | |
| def __len__(self): | |
| return 0 | |
| def __getitem__(self, arg): | |
| return None | |
| def __setitem__(self, key, value): | |
| pass | |
| def __delitem__(self, arg): | |
| pass | |
| def has_key(self, *args, **kwargs): | |
| return False | |
| def sync(self, *args, **kwargs): | |
| pass | |
| def btopen(arg): | |
| return DB(None) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment