Skip to content

Commit

Permalink
Merge pull request #60 from ClimateImpactLab/compat36
Browse files Browse the repository at this point in the history
py36 compat fix for configparser/ConfigParser difference
  • Loading branch information
jgerardsimcock committed May 16, 2017
2 parents 5d7910f + 9e60219 commit e92c6fd
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions impactlab_user/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
import os
import yaml
from jinja2 import Template
import ConfigParser

# py36 compat
try:
import ConfigParser as configparser
except ImportError:
import configparser as configparser


def _recursive_dict_merge(new, default):
Expand Down Expand Up @@ -137,7 +142,7 @@ def osdc_data(

click.echo('setting up osdc-data')

config = ConfigParser.RawConfigParser()
config = configparser.RawConfigParser()

config.read(os.path.expanduser('~/.aws/credentials'))

Expand Down Expand Up @@ -183,7 +188,7 @@ def aws(

click.echo('setting up aws')

config = ConfigParser.RawConfigParser()
config = configparser.RawConfigParser()

config.read(os.path.expanduser('~/.aws/credentials'))

Expand Down

0 comments on commit e92c6fd

Please sign in to comment.