Skip to content

Commit

Permalink
Fix trailing space in gamestats secret keys
Browse files Browse the repository at this point in the history
  • Loading branch information
sepalani committed May 17, 2017
1 parent 9e84456 commit 7f00113
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gamestats_server_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ def parse_key_file(self, filename="gamestats.cfg"):

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
Expand Down

0 comments on commit 7f00113

Please sign in to comment.