Commit 2658935c authored by Neil Williams's avatar Neil Williams 💬

Fix Python2 syntax when creating secret key.

Change-Id: I5c83a5b09b63c353b755d41f80d7fc1ccf11a629
parent 65a30238
......@@ -44,7 +44,7 @@ def _write_secret_key(pathname, secret_key):
Write a configuration file with the specified key
"""
with open(pathname, 'w') as stream:
print >> stream, """
stream.write("""
# This file was automatically generated by the lava_server.settings package, upon
# first access, by the application that attempted to load it. You can
# regenerate it at any time by removing this file or the SECRET_KEY variable
......@@ -57,7 +57,7 @@ def _write_secret_key(pathname, secret_key):
# Note: DO NOT PUBLISH THIS FILE.
SECRET_KEY='%s'
""" % secret_key
""" % secret_key)
def get_secret_key(pathname):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment