Skip to content

Instantly share code, notes, and snippets.

@berryp
Created December 9, 2011 20:44
Show Gist options
  • Select an option

  • Save berryp/1453225 to your computer and use it in GitHub Desktop.

Select an option

Save berryp/1453225 to your computer and use it in GitHub Desktop.
bsddb stub
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