Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use statistics backport #362

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.