Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

removing excess

  • Loading branch information...
commit d2fe31f0a9cb9b7dfebbda69bfdaa2437cf02448 1 parent d4e191d
Peter Bengtsson authored September 30, 2011

Showing 1 changed file with 0 additions and 16 deletions. Show diff stats Hide diff stats

  1. 16  tornado_utils/utils.py
16  tornado_utils/utils.py
@@ -130,19 +130,3 @@ def dec2hex(d):
130 130
       dec2hex(random.randint(0, 255)),
131 131
       dec2hex(random.randint(0, 255)),
132 132
     )
133  
-
134  
-
135  
-
136  
-class dict_plus(dict):
137  
-    def __init__(self, *args, **kwargs):
138  
-        if 'collection' in kwargs: # excess we don't need
139  
-            kwargs.pop('collection')
140  
-        dict.__init__(self, *args, **kwargs)
141  
-        self._wrap_internal_dicts()
142  
-    def _wrap_internal_dicts(self):
143  
-        for key, value in self.items():
144  
-            if isinstance(value, dict):
145  
-                self[key] = dict_plus(value)
146  
-
147  
-    def __getattr__(self, key):
148  
-        return self[key]

0 notes on commit d2fe31f

Please sign in to comment.
Something went wrong with that request. Please try again.