summaryrefslogtreecommitdiff
path: root/lorry-controller-webapp
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2019-11-26 14:29:03 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2019-11-27 15:06:12 +0000
commit95505797df503a086a311cab9aecbd2318522407 (patch)
tree1e3cf32a50ac10e9c95d59db883069051683f49e /lorry-controller-webapp
parent2d54f8036d1f58df9690849f5b82134927561d1e (diff)
downloadlorry-controller-95505797df503a086a311cab9aecbd2318522407.tar.gz
Update to python3
Diffstat (limited to 'lorry-controller-webapp')
-rwxr-xr-xlorry-controller-webapp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lorry-controller-webapp b/lorry-controller-webapp
index 18b28a9..c73333a 100755
--- a/lorry-controller-webapp
+++ b/lorry-controller-webapp
@@ -1,6 +1,6 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
-# Copyright (C) 2014-2017 Codethink Limited
+# Copyright (C) 2014-2019 Codethink Limited
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -235,7 +235,8 @@ class WEBAPP(cliapp.Application):
'''
- def __init__(self, (host, port), *args, **kwargs):
+ def __init__(self, server_address, *args, **kwargs):
+ (host, port) = server_address
wsgiref.simple_server.WSGIServer.__init__(
self, (host, 0), *args, **kwargs)
with open(server_port_file, 'w') as f: