ujson presence no longer breaks tablib (resolves #297) (#311)

This commit is contained in:
Maciej "RooTer" Urbański
2018-09-12 21:15:20 +02:00
committed by Iuri de Silvio
parent 3d5943a8a4
commit 4f8949417e
3 changed files with 1 additions and 23 deletions
-10
View File
@@ -40,16 +40,6 @@ To download the full source history from Git, see :ref:`Source Control <scm>`.
.. _zipball: http://github.com/kennethreitz/tablib/zipball/master
.. _speed-extensions:
Speed Extensions
----------------
You can gain some speed improvement by optionally installing the ujson_ library.
Tablib will fallback to the standard `json` module if it doesn't find ``ujson``.
.. _ujson: https://pypi.python.org/pypi/ujson
.. _updates:
Staying Updated
---------------
-9
View File
@@ -14,15 +14,6 @@ if sys.argv[-1] == 'publish':
os.system("python setup.py sdist upload")
sys.exit()
if sys.argv[-1] == 'speedups':
try:
__import__('pip')
except ImportError:
print('Pip required.')
sys.exit(1)
os.system('pip install ujson')
sys.exit()
if sys.argv[-1] == 'test':
try:
+1 -4
View File
@@ -3,14 +3,11 @@
""" Tablib - JSON Support
"""
import decimal
import json
from uuid import UUID
import tablib
try:
import ujson as json
except ImportError:
import json
title = 'json'
extensions = ('json', 'jsn')