1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

Removed python2 specific code

This entire branch is py3 only, and even with this code the actual file
isn't py2 compatible syntax wise
This commit is contained in:
A_D 2020-07-07 21:52:30 +02:00
parent 0b6ef97f41
commit dcb9853b68
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -308,11 +308,6 @@ class Session(object):
self.auth = None
self.retrying = False # Avoid infinite loop when successful auth / unsuccessful query
# yuck suppress InsecurePlatformWarning under Python < 2.7.9 which lacks SNI support
if sys.version_info < (2, 7, 9):
from requests.packages import urllib3
urllib3.disable_warnings()
def login(self, cmdr=None, is_beta=None):
# Returns True if login succeeded, False if re-authorization initiated.
if not CLIENT_ID: