summaryrefslogtreecommitdiff
path: root/lorry-controller-webapp
diff options
context:
space:
mode:
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: