mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-18 06:57:36 +08:00
refactor compatibility, learned from requests
This commit is contained in:
@@ -7,12 +7,8 @@ import string
|
||||
import time
|
||||
|
||||
try:
|
||||
string_type = basestring
|
||||
PYTHON_VERSION = 2
|
||||
import urllib
|
||||
except NameError:
|
||||
string_type = str
|
||||
PYTHON_VERSION = 3
|
||||
import urllib.parse as urllib
|
||||
|
||||
SECRET_KEY = "DebugTalk"
|
||||
|
||||
Reference in New Issue
Block a user