Skip to content

Commit

Permalink
Split up long line for PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
smacz42 authored Mar 28, 2019
1 parent 43c1182 commit 7317ebd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions init.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
# We also know that it isn't defined anywhere due to the earlier test.
indeces = [idx for idx, elem in enumerate(filelines)
if elem.startswith("#" + setting_key)]
filelines[indeces[0]] = "{0} = '{1}'\n".format(setting_key, setting_val)
filelines[indeces[0]] = "{0} = '{1}'\n".format(setting_key,
setting_val)
else:
# It is not defined anywhere
continue
Expand All @@ -84,4 +85,4 @@
for fileline in filelines:
file.write("{}".format(fileline))

os.system("/usr/local/bin/ldapcherryd -c /etc/ldapcherry/ldapcherry.ini -D")
os.system("/usr/local/bin/ldapcherryd -c /etc/ldapcherry/ldapcherry.ini")

0 comments on commit 7317ebd

Please sign in to comment.