Skip to content

Commit

Permalink
[playframework#485] Fix application.conf for "=" signs
Browse files Browse the repository at this point in the history
  • Loading branch information
erwan committed Dec 15, 2010
1 parent 8bb1cd7 commit d866a00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/pym/play/application.py
Expand Up @@ -242,7 +242,9 @@ def __init__(self, filepath, frameworkId):
continue
if linedef.find('=') == -1:
continue
self.entries[linedef.split('=')[0].rstrip()] = linedef.split('=')[1].lstrip()
key = linedef.split('=')[0].strip()
value = linedef[(linedef.find('=')+1):].strip()
self.entries[key] = value
f.close()

def get(self, key):
Expand Down

0 comments on commit d866a00

Please sign in to comment.