Skip to content

Commit

Permalink
Fixed issue with mix of spaces and tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
jNullj committed Aug 21, 2021
1 parent 525001c commit b4a31d5
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions wol.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,19 @@ def loadConfig():
Config['myPC'] = {'mac': '00:2a:a0:cf:83:15'}
Config['myLaptop'] = {'mac': '00:13:0d:e4:60:61'}
writeConfig(Config) # Generate default conf file
Config.read(conf_path+"/wol_config.ini")
sections = Config.sections()
dict1 = {}
for section in sections:
options = Config.options(section)
Config.read(conf_path+"/wol_config.ini")
sections = Config.sections()
dict1 = {}
for section in sections:
options = Config.options(section)

sectkey = section
myconfig[sectkey] = {}
sectkey = section
myconfig[sectkey] = {}

for option in options:
myconfig[sectkey][option] = Config.get(section, option)

for option in options:
myconfig[sectkey][option] = Config.get(section,option)


return myconfig # Useful for testing
return myconfig # Useful for testing

def usage():
print('Usage: wol.py [hostname]')
Expand Down

0 comments on commit b4a31d5

Please sign in to comment.