1. Pypy
  2. Untitled project
  3. pypy

Commits

Alex Gaynor  committed a3c1766

remove one last use of gross default binding

  • Participants
  • Parent commits 33d5a5d
  • Branches default

Comments (0)

Files changed (1)

File lib-python/2.7/json/decoder.py

View file
         self.parse_string = scanstring
         self.scan_once = scanner.make_scanner(self)
 
-    def decode(self, s, _w=WHITESPACE.match):
+    def decode(self, s):
         """Return the Python representation of ``s`` (a ``str`` or ``unicode``
         instance containing a JSON document)
 
         """
-        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
-        end = _w(s, end).end()
+        obj, end = self.raw_decode(s, idx=WHITESPACE.match(s, 0).end())
+        end = WHITESPACE.match(s, end).end()
         if end != len(s):
             raise ValueError(errmsg("Extra data", s, end, len(s)))
         return obj