Ticket #2620: mergedict_get.patch

File mergedict_get.patch, 443 bytes (added by Chris Beaven, 18 years ago)
  • django/utils/datastructures.py

     
    1717    def __contains__(self, key):
    1818        return self.has_key(key)
    1919
    20     def get(self, key, default):
     20    def get(self, key, default=None):
    2121        try:
    2222            return self[key]
    2323        except KeyError:
Back to Top