From b5e033dc83ed400f328650ce061696d9e2bb62f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85ke=20Forslund?= Date: Sun, 3 Mar 2019 18:01:46 +0100 Subject: [PATCH] Remove python 2 backwards compatibility --- __init__.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/__init__.py b/__init__.py index 52611ec..80ab59c 100644 --- a/__init__.py +++ b/__init__.py @@ -13,7 +13,6 @@ # limitations under the License. -import sys import webbrowser import subprocess @@ -23,16 +22,8 @@ from os.path import dirname, join from mycroft.skills.core import MycroftSkill from mycroft.util.log import getLogger -if sys.version_info[0] < 3: - from urllib import quote - try: - import gio - except ModuleNotFoundError: - sys.path.append("/usr/lib/python2.7/dist-packages") - import gio -else: - from urllib.parse import quote - from gi.repository import Gio as gio +from urllib.parse import quote +from gi.repository import Gio as gio logger = getLogger(__name__) __author__ = 'seanfitz'