Skip to content

Commit

Permalink
Use statistics backport
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb committed Mar 12, 2019
1 parent 25a66f9 commit ff62555
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 27 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
backports.csv; python_version < '3.0'
statistics; python_version < '3.0'
odfpy
openpyxl>=2.4.0
pandas
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
'odfpy',
'openpyxl>=2.4.0',
'backports.csv;python_version<"3.0"',
'statistics;python_version<"3.0"',
'xlrd',
'xlwt',
'pyyaml',
Expand Down
2 changes: 0 additions & 2 deletions tablib/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from io import BytesIO
from io import StringIO
from tablib.packages import markup3 as markup
from statistics import median
from itertools import zip_longest as izip_longest
import csv
import tablib.packages.dbfpy3 as dbfpy
Expand All @@ -29,7 +28,6 @@
from cStringIO import StringIO as BytesIO
from StringIO import StringIO
from tablib.packages import markup
from tablib.packages.statistics import median
from itertools import izip_longest
from backports import csv
import tablib.packages.dbfpy as dbfpy
Expand Down
3 changes: 2 additions & 1 deletion tablib/formats/_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@

from textwrap import TextWrapper

from statistics import median

from tablib.compat import (
median,
unicode,
izip_longest,
)
Expand Down
24 changes: 0 additions & 24 deletions tablib/packages/statistics.py

This file was deleted.

0 comments on commit ff62555

Please sign in to comment.