mirror of
https://github.com/barronwaffles/dwc_network_server_emulator.git
synced 2026-04-24 23:37:09 -05:00
Merge pull request #409 from sepalani/fix-keys
Fix trailing space in gamestats secret keys
This commit is contained in:
commit
cdee6ea7b1
|
|
@ -132,10 +132,10 @@ class GameStatsHTTPServer(BaseHTTPServer.HTTPServer):
|
|||
|
||||
with open(filename) as config_file:
|
||||
for line in config_file.readlines():
|
||||
if "#" in line:
|
||||
line = line[:line.index('#')]
|
||||
line, sep, comment = line.partition("#")
|
||||
|
||||
s = line.split('\t')
|
||||
# Skip whitespaces (i.e. ' ', '\t', '\n')
|
||||
s = line.split(None)
|
||||
|
||||
if len(s) != 3:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user