From 2d69dcd6336ef679f687f184880fcfae39f6d5f5 Mon Sep 17 00:00:00 2001 From: Dylan Semler Date: Thu, 16 Feb 2017 18:17:46 -0500 Subject: [PATCH] Remove python2 syntax in example app This python2 syntax breaks installation as a dependency via setuptools. --- example/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/app.py b/example/app.py index 28a7295..9aa80e3 100644 --- a/example/app.py +++ b/example/app.py @@ -23,7 +23,7 @@ def index(): @app.route("/view/") def view(object_name): obj = storage.get(object_name) - print obj.name + print(obj.name) return render_template("view.html", obj=obj) @app.route("/upload", methods=["POST"]) @@ -34,4 +34,4 @@ def upload(): if __name__ == "__main__": - app.run(debug=True, port=5000) \ No newline at end of file + app.run(debug=True, port=5000)