From e0c37e1b1711cb08c81b7ca818ec6bf668b6ca73 Mon Sep 17 00:00:00 2001 From: Rui Carmo Date: Thu, 14 Jun 2018 22:19:57 +0100 Subject: [PATCH] Python 3 --- examples/python/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/python/main.py b/examples/python/main.py index 6dc14e9..91fa0c1 100644 --- a/examples/python/main.py +++ b/examples/python/main.py @@ -6,12 +6,12 @@ from bottle import default_app, route, request, view, static_file, run def default(): result = {} table = [''] - for k, v in sorted(os.environ.iteritems()): + for k, v in sorted(os.environ.items()): table.append('' % (k, v)) table.append('
%s%s
') result['sys_data'] = '\n'.join(table) table = [''] - for k, v in sorted(dict(request.environ).iteritems()): + for k, v in sorted(dict(request.environ).items()): table.append('' % (k, v)) table.append('
%s%s
') result['req_data'] = '\n'.join(table)