From dcb9853b68ba83139710625933d09ce4d3f356f2 Mon Sep 17 00:00:00 2001 From: A_D Date: Tue, 7 Jul 2020 21:52:30 +0200 Subject: [PATCH] Removed python2 specific code This entire branch is py3 only, and even with this code the actual file isn't py2 compatible syntax wise --- companion.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/companion.py b/companion.py index 87f3d351..6321e8ef 100644 --- a/companion.py +++ b/companion.py @@ -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: