aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-03-11 22:59:21 +0100
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-03-11 22:59:21 +0100
commit3e58d38bdf651ed8f32dc1ddcad6d657d69c3571 (patch)
treecc0b830de575b9f5624dfe7f7de3a56584b55984
parent5452d641200b8595a973c874250a27756f47ccbf (diff)
Get rid of Python 2 specific compatibility leftovers
-rw-r--r--pySim/exceptions.py8
-rw-r--r--pySim/transport/calypso.py2
-rw-r--r--pySim/transport/modem_atcmd.py2
-rw-r--r--pySim/transport/serial.py2
4 files changed, 0 insertions, 14 deletions
diff --git a/pySim/exceptions.py b/pySim/exceptions.py
index 156ec62..2ffe5f9 100644
--- a/pySim/exceptions.py
+++ b/pySim/exceptions.py
@@ -21,14 +21,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-from __future__ import absolute_import
-
-try:
- # This is for compatibility with python 2 and 3
- from exceptions import Exception
-except:
- pass
-
class NoCardError(Exception):
pass
diff --git a/pySim/transport/calypso.py b/pySim/transport/calypso.py
index fd2e110..7f99d21 100644
--- a/pySim/transport/calypso.py
+++ b/pySim/transport/calypso.py
@@ -20,8 +20,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-from __future__ import absolute_import
-
import select
import struct
import socket
diff --git a/pySim/transport/modem_atcmd.py b/pySim/transport/modem_atcmd.py
index ccf608c..86d4443 100644
--- a/pySim/transport/modem_atcmd.py
+++ b/pySim/transport/modem_atcmd.py
@@ -19,8 +19,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-from __future__ import absolute_import
-
import logging as log
import serial
import time
diff --git a/pySim/transport/serial.py b/pySim/transport/serial.py
index 11104b1..03d3f38 100644
--- a/pySim/transport/serial.py
+++ b/pySim/transport/serial.py
@@ -20,8 +20,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-from __future__ import absolute_import
-
import serial
import time
import os.path