Mercurial > hg > wsgintegrate
diff wsgintegrate/main.py @ 29:d742aff49859
-> python3
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 10 May 2020 18:46:40 -0700 |
parents | 37b47aedcc3d |
children | 1ad7f99f588d |
line wrap: on
line diff
--- a/wsgintegrate/main.py Sun May 10 18:39:21 2020 -0700 +++ b/wsgintegrate/main.py Sun May 10 18:46:40 2020 -0700 @@ -50,20 +50,20 @@ # print configuration, if specified if options.list_apps: for app in sorted(factory.config.keys()): - print app + print(app) return if options.print_json: - print factory.json_config() + print(factory.json_config()) return if options.print_ini: - print factory.ini_config() + print(factory.ini_config()) return # serve it server_name = getattr(options, 'server', 'wsgiref') - print ("Serving with %s" % (server_name)) + print("Serving with %s" % (server_name)) server = servers[server_name] - print ('http://localhost:%d/' % options.port) + print('http://localhost:%d/' % options.port) server(app=factory.load(), port=options.port) if __name__ == '__main__':