From 95505797df503a086a311cab9aecbd2318522407 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Tue, 26 Nov 2019 14:29:03 +0000 Subject: Update to python3 --- lorry-controller-webapp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lorry-controller-webapp') 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: -- cgit v1.2.1