From 3328e623d21ca1736710b19ddcf9cfe6a4f1a5cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 30 Mar 2019 18:15:41 +0100 Subject: [PATCH] Fix HTTPStatus import for Python 3.4 --- routes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/routes.py b/routes.py index c0618208e5..d5dd9c5da2 100644 --- a/routes.py +++ b/routes.py @@ -1,7 +1,10 @@ # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. -from http import HTTPStatus +try: + from http import HTTPStatus +except ImportError: + from http import client as HTTPStatus from werkzeug.utils import redirect from werkzeug.exceptions import abort