File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 11
22try :
3+ # Python 3+
34 from http import cookies as Cookie
45 from http .cookies import CookieError , BaseCookie , SimpleCookie
56 from http .cookies import _getdate as get_cookie_date
67except :
8+ # Python 2.5-2.7
79 from Cookie import CookieError , BaseCookie , SimpleCookie
810 from Cookie import _getdate as get_cookie_date
Original file line number Diff line number Diff line change 11try :
2+ # Python 3+
23 from http import client
34except :
5+ # Python 2.5-2.7
46 import httplib as client
57
Original file line number Diff line number Diff line change 11
22try :
3+ # Python 2.6+, 3+
34 from io import StringIO , BytesIO
45except :
6+ # Python 2.5
57 from StringIO import StringIO
68 BytesIO = StringIO
79
Original file line number Diff line number Diff line change 11
22try :
3+ # Python 3+
34 from urllib .parse import quote , urlparse
45except :
6+ # Python 2.5-2.7
57 from urllib import quote
68 from urlparse import urlparse
You can’t perform that action at this time.
0 commit comments