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