@@ -38,12 +38,6 @@ else: # pragma: no cover
__all__ = ['MongoBackend']
-class Bunch(object):
-
- def __init__(self, **kw):
- self.__dict__.update(kw)
class MongoBackend(BaseBackend):
mongo_host = None
@@ -11,6 +11,13 @@ from __future__ import absolute_import
__all__ = ['mro_lookup']
+class Bunch(object):
+ """Object that enables you to modify attributes."""
+
+ def __init__(self, **kwargs):
+ self.__dict__.update(kwargs)
def mro_lookup(cls, attr, stop=(), monkey_patched=[]):
"""Return the first node by MRO order that defines an attribute.