Commit 71af3f54 authored by Vincent Michel's avatar Vincent Michel

Fix python2 compat

parent af054e37
......@@ -3,7 +3,7 @@
from __future__ import absolute_import
import os
import configparser
from six.moves import configparser
import numpy
......@@ -366,4 +366,4 @@ def get_config(filename):
config = configparser.ConfigParser(
comment_prefixes=['START', 'END', '#', '*****'])
config.read(filename)
return {key: dict(section) for key, section in config.items()}
return {key: dict(section) for section in config.items()}
......@@ -11,7 +11,7 @@ setup(
version='0.1.0.dev0',
packages=['handel'],
install_requires=['cffi', 'numpy'],
install_requires=['cffi', 'numpy', 'six'],
setup_requires=['pytest-runner', 'pytest'] if TESTING else [],
tests_require=['pytest-cov', 'mock'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment