Skip to content

Commit

Permalink
Fix usage with newer ConfigParser
Browse files Browse the repository at this point in the history
For this, we require the external ConfigParser package on Python < 3.2

Fixes #28
  • Loading branch information
terceiro committed Feb 12, 2019
1 parent 83a6018 commit 94eecdb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
7 changes: 1 addition & 6 deletions ofxclient/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,7 @@ class SecurableConfigParser(ConfigParser):

def __init__(self, keyring_name='ofxclient',
keyring_available=KEYRING_AVAILABLE, **kwargs):
if sys.version_info >= (3,):
# python 3
ConfigParser.__init__(self, interpolation=None)
else:
# python 2
ConfigParser.__init__(self)
ConfigParser.__init__(self, interpolation=None)
self.keyring_name = keyring_name
self.keyring_available = keyring_available
self._unsaved = {}
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
argparse==1.4.1; python_version < '2.7'
configparser; python_version < '3.2'
beautifulsoup4==4.4.1
keyring==8.4.1
ofxhome==0.3.3
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
},
install_requires=[
"argparse",
"configparser; python_version < '3.2',
"keyring",
"lxml",
"ofxhome",
Expand Down

0 comments on commit 94eecdb

Please sign in to comment.