Ticket #2791: merge_contains.patch

File merge_contains.patch, 479 bytes (added by ned@…, 18 years ago)

patch!

  • site-packages/django/utils/datastructures.py

     
    1414                pass
    1515        raise KeyError
    1616
     17    def __contains__(self, key):
     18        return self.has_key(key)
     19   
    1720    def get(self, key, default):
    1821        try:
    1922            return self[key]
Back to Top