aboutsummaryrefslogtreecommitdiff
path: root/tools/addon-sdk-1.3/python-lib/cuddlefish/bunch.py
diff options
context:
space:
mode:
authorGravatar Rogan Creswick <creswick@galois.com>2012-03-31 08:08:11 -0700
committerGravatar Rogan Creswick <creswick@galois.com>2012-03-31 08:08:11 -0700
commitec532e93339a942a395829ec87f427852cd72e00 (patch)
treef6ad13ca7f90f26fda9bc23e428ee367f153e3d2 /tools/addon-sdk-1.3/python-lib/cuddlefish/bunch.py
parent780bf48de85215f5b0b6fde0df40599ac6f9c037 (diff)
removed older addon-sdks from tools
Diffstat (limited to 'tools/addon-sdk-1.3/python-lib/cuddlefish/bunch.py')
-rw-r--r--tools/addon-sdk-1.3/python-lib/cuddlefish/bunch.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/tools/addon-sdk-1.3/python-lib/cuddlefish/bunch.py b/tools/addon-sdk-1.3/python-lib/cuddlefish/bunch.py
deleted file mode 100644
index 7262cbc..0000000
--- a/tools/addon-sdk-1.3/python-lib/cuddlefish/bunch.py
+++ /dev/null
@@ -1,30 +0,0 @@
-# Taken from Paver's paver.options module.
-
-class Bunch(dict):
- """A dictionary that provides attribute-style access."""
-
- def __repr__(self):
- keys = self.keys()
- keys.sort()
- args = ', '.join(['%s=%r' % (key, self[key]) for key in keys])
- return '%s(%s)' % (self.__class__.__name__, args)
-
- def __getitem__(self, key):
- item = dict.__getitem__(self, key)
- if callable(item):
- return item()
- return item
-
- def __getattr__(self, name):
- try:
- return self[name]
- except KeyError:
- raise AttributeError(name)
-
- __setattr__ = dict.__setitem__
-
- def __delattr__(self, name):
- try:
- del self[name]
- except KeyError:
- raise AttributeError(name)