Ticket #4337: 4337.2.diff
| File 4337.2.diff, 0.9 kB (added by Gary Wilson <gary.wilson@gmail.com>, 2 years ago) |
|---|
-
django/http/__init__.py
old new 121 121 self._assert_mutable() 122 122 MultiValueDict.update(self, other_dict) 123 123 124 def pop(self, key ):124 def pop(self, key, *args): 125 125 self._assert_mutable() 126 return MultiValueDict.pop(self, key )126 return MultiValueDict.pop(self, key, *args) 127 127 128 128 def popitem(self): 129 129 self._assert_mutable() -
tests/regressiontests/httpwrappers/tests.py
old new 166 166 >>> q.pop('foo') 167 167 ['bar', 'baz', 'another', 'hello'] 168 168 169 >>> q.pop('foo', 'not there') 170 'not there' 171 169 172 >>> q.get('foo', 'not there') 170 173 'not there' 171 174
