summaryrefslogtreecommitdiff
path: root/python3
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2018-08-11 16:26:56 +0200
committerLucas Hoffmann <l-m-h@web.de>2018-08-11 16:26:56 +0200
commit925e7bbffbe1305e69efa653326902df600b69f2 (patch)
treed0cc7f4880454bd54c4aa925998df875e7d959f0 /python3
parent2dc29d79daf726a3f8bbcafe7f1c19f86f66b5fc (diff)
downloadvdebug-925e7bbffbe1305e69efa653326902df600b69f2.zip
Remove python2 import workarounds
The switch to python3 is now complete so we don't need these workarounds to run on both python2 and python3 any longer.
Diffstat (limited to 'python3')
-rw-r--r--python3/vdebug/connection.py5
-rw-r--r--python3/vdebug/dbgp.py5
-rw-r--r--python3/vdebug/util.py5
3 files changed, 3 insertions, 12 deletions
diff --git a/python3/vdebug/connection.py b/python3/vdebug/connection.py
index abe4460..11b3f67 100644
--- a/python3/vdebug/connection.py
+++ b/python3/vdebug/connection.py
@@ -1,7 +1,4 @@
-try:
- import queue
-except ImportError:
- import Queue as queue
+import queue
import socket
import sys
import threading
diff --git a/python3/vdebug/dbgp.py b/python3/vdebug/dbgp.py
index e26ad10..c03ca7a 100644
--- a/python3/vdebug/dbgp.py
+++ b/python3/vdebug/dbgp.py
@@ -2,10 +2,7 @@ import base64
import socket
import sys
import time
-if sys.hexversion >= 0x02050000:
- import xml.etree.ElementTree as ET
-else:
- import elementtree.ElementTree as ET
+import xml.etree.ElementTree as ET
from . import log
diff --git a/python3/vdebug/util.py b/python3/vdebug/util.py
index 8f76acc..4e34917 100644
--- a/python3/vdebug/util.py
+++ b/python3/vdebug/util.py
@@ -4,10 +4,7 @@ import socket
import sys
import time
import traceback
-try:
- import urllib.parse as urllib
-except ImportError:
- import urllib
+import urllib.parse as urllib
import vim