From bba4b27846820cf0d3e0cb235eb94eeb1b89c75f Mon Sep 17 00:00:00 2001 From: debugtalk Date: Tue, 17 May 2022 15:23:00 +0800 Subject: [PATCH] fix #1300: ImportError: cannot import name 'Iterable' from 'collections' --- httprunner/report/stringify.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/httprunner/report/stringify.py b/httprunner/report/stringify.py index 05b633f0..fc14aaef 100644 --- a/httprunner/report/stringify.py +++ b/httprunner/report/stringify.py @@ -1,5 +1,8 @@ from base64 import b64encode -from collections import Iterable +try: + from collections.abc import Iterable +except ImportError: + from collections import Iterable from jinja2 import escape from requests.cookies import RequestsCookieJar