diff options
author | Raymond Hettinger <python@rcn.com> | 2002-06-30 03:39:14 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-06-30 03:39:14 +0000 |
commit | 46ac8eb3c899b498299a2f8fbcdd4ed3f32addba (patch) | |
tree | bcbe8646fceabec7bcdc4c365f6389fb537fdb68 /Lib/xmlrpclib.py | |
parent | 78e057a32a92c3bfb464b27a02f4931c474769e8 (diff) | |
download | cpython-git-46ac8eb3c899b498299a2f8fbcdd4ed3f32addba.tar.gz |
Code modernization. Replace v=s[i]; del s[i] with single lookup v=s.pop(i)
Diffstat (limited to 'Lib/xmlrpclib.py')
-rw-r--r-- | Lib/xmlrpclib.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py index 0eb9f3f073..4b6fc43cff 100644 --- a/Lib/xmlrpclib.py +++ b/Lib/xmlrpclib.py @@ -779,16 +779,14 @@ class Unmarshaller: dispatch["name"] = end_string # struct keys are always strings def end_array(self, data): - mark = self._marks[-1] - del self._marks[-1] + mark = self._marks.pop() # map arrays to Python lists self._stack[mark:] = [self._stack[mark:]] self._value = 0 dispatch["array"] = end_array def end_struct(self, data): - mark = self._marks[-1] - del self._marks[-1] + mark = self._marks.pop() # map structs to Python dictionaries dict = {} items = self._stack[mark:] |