Ticket #2620: mergedict_get.patch
File mergedict_get.patch, 443 bytes (added by , 18 years ago) |
---|
-
django/utils/datastructures.py
17 17 def __contains__(self, key): 18 18 return self.has_key(key) 19 19 20 def get(self, key, default ):20 def get(self, key, default=None): 21 21 try: 22 22 return self[key] 23 23 except KeyError: