mirror of
https://github.com/JuanCanham/skill-desktop-launcher.git
synced 2024-11-22 08:50:11 +00:00
Remove python 2 backwards compatibility
This commit is contained in:
parent
e3547a36fa
commit
b5e033dc83
13
__init__.py
13
__init__.py
@ -13,7 +13,6 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import webbrowser
|
import webbrowser
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
@ -23,16 +22,8 @@ from os.path import dirname, join
|
|||||||
|
|
||||||
from mycroft.skills.core import MycroftSkill
|
from mycroft.skills.core import MycroftSkill
|
||||||
from mycroft.util.log import getLogger
|
from mycroft.util.log import getLogger
|
||||||
if sys.version_info[0] < 3:
|
from urllib.parse import quote
|
||||||
from urllib import quote
|
from gi.repository import Gio as gio
|
||||||
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
|
|
||||||
|
|
||||||
logger = getLogger(__name__)
|
logger = getLogger(__name__)
|
||||||
__author__ = 'seanfitz'
|
__author__ = 'seanfitz'
|
||||||
|
Loading…
Reference in New Issue
Block a user