From 2905b3cb0d3fc78ce219360368404e65fe341734 Mon Sep 17 00:00:00 2001 From: Mike Exner-Kittridge Date: Wed, 14 Mar 2018 16:39:50 +1300 Subject: [PATCH] update --- hilltoppy/util.py | 5 ++++- meta.yaml | 1 - setup.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hilltoppy/util.py b/hilltoppy/util.py index 434ef9f..93b6fdb 100644 --- a/hilltoppy/util.py +++ b/hilltoppy/util.py @@ -4,7 +4,10 @@ """ from os import path from datetime import datetime -from configparser import ConfigParser +try: + from configparser import ConfigParser +except ImportError: + from ConfigParser import SafeConfigParser as ConfigParser def parse_dsn(dsn_path): diff --git a/meta.yaml b/meta.yaml index 7a48ead..271f4b1 100644 --- a/meta.yaml +++ b/meta.yaml @@ -14,7 +14,6 @@ requirements: - python - pandas - pywin32 - - configparser about: home: https://github.com/mullenkamp/hilltop-py diff --git a/setup.py b/setup.py index 8e67be9..3f6413c 100644 --- a/setup.py +++ b/setup.py @@ -123,7 +123,7 @@ # # For an analysis of "install_requires" vs pip's requirements files see: # https://packaging.python.org/en/latest/requirements.html - install_requires=['pandas', 'pywin32', 'configparser'], # Optional + install_requires=['pandas', 'pywin32'], # Optional # List additional groups of dependencies here (e.g. development # dependencies). Users will be able to install these using the "extras"