mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-07 08:49:37 +08:00
fix compatibility with python2.7
This commit is contained in:
@@ -40,7 +40,7 @@ if is_py2:
|
|||||||
integer_types = (int, long)
|
integer_types = (int, long)
|
||||||
|
|
||||||
FileNotFoundError = IOError
|
FileNotFoundError = IOError
|
||||||
JSONDecodeError = json.decoder.JSONDecodeError
|
JSONDecodeError = ValueError
|
||||||
|
|
||||||
elif is_py3:
|
elif is_py3:
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
@@ -53,4 +53,4 @@ elif is_py3:
|
|||||||
integer_types = (int,)
|
integer_types = (int,)
|
||||||
|
|
||||||
FileNotFoundError = FileNotFoundError
|
FileNotFoundError = FileNotFoundError
|
||||||
JSONDecodeError = ValueError
|
JSONDecodeError = json.decoder.JSONDecodeError
|
||||||
|
|||||||
Reference in New Issue
Block a user