Skip to content

Commit b4a31d5

Browse files
committed
Fixed issue with mix of spaces and tabs
1 parent 525001c commit b4a31d5

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

wol.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,19 @@ def loadConfig():
8383
Config['myPC'] = {'mac': '00:2a:a0:cf:83:15'}
8484
Config['myLaptop'] = {'mac': '00:13:0d:e4:60:61'}
8585
writeConfig(Config) # Generate default conf file
86-
Config.read(conf_path+"/wol_config.ini")
87-
sections = Config.sections()
88-
dict1 = {}
89-
for section in sections:
90-
options = Config.options(section)
86+
Config.read(conf_path+"/wol_config.ini")
87+
sections = Config.sections()
88+
dict1 = {}
89+
for section in sections:
90+
options = Config.options(section)
9191

92-
sectkey = section
93-
myconfig[sectkey] = {}
92+
sectkey = section
93+
myconfig[sectkey] = {}
9494

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

96-
for option in options:
97-
myconfig[sectkey][option] = Config.get(section,option)
98-
99-
100-
return myconfig # Useful for testing
98+
return myconfig # Useful for testing
10199

102100
def usage():
103101
print('Usage: wol.py [hostname]')

0 commit comments

Comments
 (0)