Commit c1c501de authored by Łukasz Nowak's avatar Łukasz Nowak

caddy-frontend: Switch to python3

parent 0c7ec819
...@@ -22,6 +22,9 @@ parts += ...@@ -22,6 +22,9 @@ parts +=
caddyprofiledeps caddyprofiledeps
kedifa kedifa
[python]
part = python3
[kedifa] [kedifa]
recipe = zc.recipe.egg recipe = zc.recipe.egg
eggs = eggs =
......
...@@ -56,6 +56,7 @@ import string ...@@ -56,6 +56,7 @@ import string
from slapos.slap.standalone import SlapOSNodeInstanceError from slapos.slap.standalone import SlapOSNodeInstanceError
import caucase.client import caucase.client
import caucase.utils import caucase.utils
from __future__ import print_function
try: try:
...@@ -7132,5 +7133,5 @@ if __name__ == '__main__': ...@@ -7132,5 +7133,5 @@ if __name__ == '__main__':
url_template = 'http://%s:%s/' url_template = 'http://%s:%s/'
server = klass((ip, port), TestHandler) server = klass((ip, port), TestHandler)
print url_template % server.server_address[:2] print(url_template % (server.server_address[:2],))
server.serve_forever() server.serve_forever()
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