Skip to content

Commit e417c2b

Browse files
committed
Replaced vendored omnijson by the standard lib version
Refs jazzband#273.
1 parent 44e9e24 commit e417c2b

File tree

12 files changed

+7
-1701
lines changed

12 files changed

+7
-1701
lines changed

NOTICE

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Tablib includes some vendorized python libraries: ordereddict, odfpy,
2-
simplejson, unicodecsv.
1+
Tablib includes some vendorized python libraries: ordereddict, odfpy.
32

43
Markup License
54
==============
@@ -239,33 +238,3 @@ subject to the following conditions:
239238
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
240239
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
241240
OTHER DEALINGS IN THE SOFTWARE.
242-
243-
244-
UnicodeCSV License
245-
==================
246-
247-
Copyright 2010 Jeremy Dunck. All rights reserved.
248-
249-
Redistribution and use in source and binary forms, with or without modification, are
250-
permitted provided that the following conditions are met:
251-
252-
1. Redistributions of source code must retain the above copyright notice, this list of
253-
conditions and the following disclaimer.
254-
255-
2. Redistributions in binary form must reproduce the above copyright notice, this list
256-
of conditions and the following disclaimer in the documentation and/or other materials
257-
provided with the distribution.
258-
259-
THIS SOFTWARE IS PROVIDED BY JEREMY DUNCK ``AS IS'' AND ANY EXPRESS OR IMPLIED
260-
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
261-
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JEREMY DUNCK OR
262-
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
263-
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
264-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
265-
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
266-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
267-
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
268-
269-
The views and conclusions contained in the software and documentation are those of the
270-
authors and should not be interpreted as representing official policies, either expressed
271-
or implied, of Jeremy Dunck.

docs/install.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Installation
33
============
44

5-
This part of the documentation covers the installation of Tablib. The first step to using any software package is getting it properly installed. Please read this section carefully, or you may miss out on some nice :ref:`speed enhancements <peed-extensions>`.
5+
This part of the documentation covers the installation of Tablib. The first step to using any software package is getting it properly installed.
66

77

88
.. _installing:
@@ -44,14 +44,10 @@ To download the full source history from Git, see :ref:`Source Control <scm>`.
4444
Speed Extensions
4545
----------------
4646

47-
.. versionadded:: 0.8.5
48-
49-
Tablib is partially dependent on the **simplejson**, and **xlwt** modules. To reduce installation issues, fully integrated versions of all required libraries are included in Tablib.
50-
51-
If you're using Python 2.5, you should also install the **simplejson** module (pip will do this for you). If you're using Python 2.6+, the built-in **json** module is already optimized and in use. ::
52-
53-
$ pip install simplejson
47+
You can gain some speed improvement by optionally installing the ujson_ library.
48+
Tablib will fallback to the standard `json` module if it doesn't find ``ujson``.
5449

50+
.. _ujson: https://pypi.python.org/pypi/ujson
5551

5652

5753
.. _updates:

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
packages = [
3838
'tablib', 'tablib.formats',
3939
'tablib.packages',
40-
'tablib.packages.omnijson',
4140
'tablib.packages.odf',
4241
'tablib.packages.dbfpy',
4342
'tablib.packages.odf3',

tablib/formats/_json.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
import tablib
88

99
try:
10-
import json
10+
import ujson as json
1111
except ImportError:
12-
from tablib.packages import omnijson as json
13-
12+
import json
1413

1514
title = 'json'
1615
extensions = ('json', 'jsn')

tablib/packages/omnijson/__init__.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

tablib/packages/omnijson/core.py

Lines changed: 0 additions & 93 deletions
This file was deleted.

tablib/packages/omnijson/packages/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)