diff options
| author | Claude Paroz <claude@2xlibre.net> | 2019-10-03 21:07:49 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2019-10-03 21:14:22 +0200 |
| commit | 8aeb5e5158e26125a3e5a5ebb09ebc94493c6c4f (patch) | |
| tree | 754caf75f2a4960971668a93c6bd5830a6e3946b /tablib/formats/_xlsx.py | |
| parent | a0d19a56cbb49efbab8497f9eb89b3d6edde91e2 (diff) | |
| download | tablib-8aeb5e5158e26125a3e5a5ebb09ebc94493c6c4f.tar.gz | |
io.BytesIO is also available in Python 2.7
Diffstat (limited to 'tablib/formats/_xlsx.py')
| -rw-r--r-- | tablib/formats/_xlsx.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tablib/formats/_xlsx.py b/tablib/formats/_xlsx.py index 0099e5e..a2d46ce 100644 --- a/tablib/formats/_xlsx.py +++ b/tablib/formats/_xlsx.py @@ -4,12 +4,7 @@ """ import sys - - -if sys.version_info[0] > 2: - from io import BytesIO -else: - from cStringIO import StringIO as BytesIO +from io import BytesIO import openpyxl import tablib |
