Permalink
Browse files

removing excess

  • Loading branch information...
1 parent d4e191d commit d2fe31f0a9cb9b7dfebbda69bfdaa2437cf02448 @peterbe committed Sep 30, 2011
Showing with 0 additions and 16 deletions.
  1. +0 −16 tornado_utils/utils.py
@@ -130,19 +130,3 @@ def dec2hex(d):
dec2hex(random.randint(0, 255)),
dec2hex(random.randint(0, 255)),
)
-
-
-
-class dict_plus(dict):
- def __init__(self, *args, **kwargs):
- if 'collection' in kwargs: # excess we don't need
- kwargs.pop('collection')
- dict.__init__(self, *args, **kwargs)
- self._wrap_internal_dicts()
- def _wrap_internal_dicts(self):
- for key, value in self.items():
- if isinstance(value, dict):
- self[key] = dict_plus(value)
-
- def __getattr__(self, key):
- return self[key]

0 comments on commit d2fe31f

Please sign in to comment.