Skip to content

Commit

Permalink
fix tests for python2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
romantomjak committed Aug 10, 2017
1 parent 3bd5033 commit 412b75f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ Flask==0.12.2
GitPython==2.1.5
gunicorn==19.7.1
requests==2.18.3
mock==2.0.0
4 changes: 2 additions & 2 deletions skilled_hammer/repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from skilled_hammer import exceptions

parser = configparser.ConfigParser()
parser = configparser.ConfigParser(defaults={'command': None})


def load():
Expand All @@ -19,7 +19,7 @@ def load():
data = {
'name': section,
'directory': parser.get(section, 'directory'),
'command': parser.get(section, 'command', fallback=None),
'command': parser.get(section, 'command'),
'origin': parser.get(section, 'origin'),
}
repositories[data['origin']] = data
Expand Down

0 comments on commit 412b75f

Please sign in to comment.