Ticket #13813: 13818.diff

File 13818.diff, 559 bytes (added by Michael Shields, 14 years ago)
  • db/backends/__init__.py

    diff --git a/db/backends/__init__.py b/google3/third_party/py/django/v1_2/db/backends/__init__.py
    index 5918935..cd5e480 100755
    a b class BaseDatabaseWrapper(local):  
    2222        self.alias = alias
    2323
    2424    def __eq__(self, other):
    25         return self.settings_dict == other.settings_dict
     25        try:
     26            return self.settings_dict == other.settings_dict
     27        except AttributeError:
     28            return False
    2629
    2730    def __ne__(self, other):
    2831        return not self == other
Back to Top