Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jaesivsm committed Mar 25, 2016
1 parent 3981668 commit 1e9b16e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,14 @@ def ask(text, choices=[], default=None, cast=None):


def build_conf(test=False):
try:
import conf
could_import_conf = True
except ImportError:
conf = None
could_import_conf = False
conf = None
could_import_conf = False
if not test:
try:
import conf
could_import_conf = True
except ImportError:
pass

for section in conf_handling.SECTIONS:
section_edit = section.get('edit', True)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/conf_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def write_conf(conf_gen):
if current_section != section and section:
fd.write('\n# %s\n' % section.upper())
current_section = section
fd.write('%s = %r\n' % (key, section))
fd.write('%s = %r\n' % (key, value))


def rewrite(new_conf):
Expand Down

0 comments on commit 1e9b16e

Please sign in to comment.