Fix HTTPStatus import for Python 3.4

This commit is contained in:
Cédric Krier committed 2019-03-30 18:15:41 +01:00
1 parent bc88131656
commit 3328e623d2
1 file changed
+4 -1
+4 -1
View File
@@ -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