diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2019-11-26 14:29:03 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2019-11-27 15:06:12 +0000 |
commit | 95505797df503a086a311cab9aecbd2318522407 (patch) | |
tree | 1e3cf32a50ac10e9c95d59db883069051683f49e /lorry-controller-webapp | |
parent | 2d54f8036d1f58df9690849f5b82134927561d1e (diff) | |
download | lorry-controller-95505797df503a086a311cab9aecbd2318522407.tar.gz |
Update to python3
Diffstat (limited to 'lorry-controller-webapp')
-rwxr-xr-x | lorry-controller-webapp | 7 |
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: |