mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
Add Python 3.4 support
Note that py3.4 is the version shipped in current Debian version (Jessie).
This commit is contained in:
parent
1b94f6738a
commit
dfe8297fae
3 changed files with 5 additions and 2 deletions
|
@ -4,5 +4,6 @@ install:
|
|||
- pip install tox
|
||||
env:
|
||||
- TOXENV=py27
|
||||
- TOXENV=py34
|
||||
- TOXENV=py35
|
||||
- TOXENV=docs
|
||||
|
|
|
@ -99,7 +99,9 @@ def list_of_dicts2csv(dict_to_convert):
|
|||
try:
|
||||
if six.PY3:
|
||||
csv_file = StringIO()
|
||||
csv_data = [dict_to_convert[0].keys()]
|
||||
# using list() for py3.4 compat. Otherwise, writerows() fails
|
||||
# (expecting a sequence getting a view)
|
||||
csv_data = [list(dict_to_convert[0].keys())]
|
||||
for dic in dict_to_convert:
|
||||
csv_data.append([dic[h] for h in dict_to_convert[0].keys()])
|
||||
else:
|
||||
|
|
2
tox.ini
2
tox.ini
|
@ -1,5 +1,5 @@
|
|||
[tox]
|
||||
envlist = py35,py27,docs
|
||||
envlist = py35,py34,py27,docs
|
||||
skip_missing_interpreters = True
|
||||
|
||||
[testenv]
|
||||
|
|
Loading…
Reference in a new issue