mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-14 20:08:23 +08:00
change method of checking python version
This commit is contained in:
@@ -9,9 +9,10 @@ import yaml
|
||||
from ate.exception import ParamsError
|
||||
|
||||
try:
|
||||
assert bytes is str
|
||||
string_type = basestring
|
||||
PYTHON_VERSION = 2
|
||||
except AssertionError:
|
||||
except NameError:
|
||||
string_type = str
|
||||
PYTHON_VERSION = 3
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user