Skip to content

Commit

Permalink
Removing .x and .so files and changed some type specifications that w…
Browse files Browse the repository at this point in the history
…eren't necessary in files.
  • Loading branch information
arthursribeiro committed Apr 17, 2011
1 parent b1beefc commit e2d80e0
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 26,303 deletions.
Binary file removed JSONModule.cpython-32m.so
Binary file not shown.
3,350 changes: 0 additions & 3,350 deletions __init__.c

This file was deleted.

8,827 changes: 0 additions & 8,827 deletions decoder.c

This file was deleted.

Binary file removed decoder.cpython-32m.so
Binary file not shown.
9 changes: 4 additions & 5 deletions decoder.pyx
Expand Up @@ -5,8 +5,7 @@ import re
import sys
import struct

from json.scanner import make_scanner

from scanner import make_scanner
try:
from _json import scanstring as c_scanstring
except ImportError:
Expand All @@ -17,7 +16,8 @@ __all__ = ['JSONDecoder']
FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL

cdef object _floatconstants():
cdef bytes _BYTES = binascii.unhexlify(b'7FF80000000000007FF0000000000000')
cdef bytes _BYTES
_BYTES = binascii.unhexlify(b'7FF80000000000007FF0000000000000')
cdef double nan, inf
if sys.byteorder != 'big':
_BYTES = _BYTES[:8][::-1] + _BYTES[8:][::-1]
Expand Down Expand Up @@ -171,8 +171,7 @@ def JSONObject(s_and_end, bint strict, scan_once_x, object_hook, object_pairs_ho
end += 1
while True:
key, end = scanstring(s, end, strict)
k = memo_get(key, key)
key = k
key = memo_get(key, key)
# To skip some function call overhead we optimize the fast paths where
# the JSON key separator is ": " or just ":".
if s[end:end + 1] != ':':
Expand Down

0 comments on commit e2d80e0

Please sign in to comment.