From 3e58d38bdf651ed8f32dc1ddcad6d657d69c3571 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Thu, 11 Mar 2021 22:59:21 +0100 Subject: [PATCH] Get rid of Python 2 specific compatibility leftovers Change-Id: I0068caa775d89349db2ad378fad22e89832b8d20 --- pySim/exceptions.py | 8 -------- pySim/transport/calypso.py | 2 -- pySim/transport/modem_atcmd.py | 2 -- pySim/transport/serial.py | 2 -- 4 files changed, 14 deletions(-) diff --git a/pySim/exceptions.py b/pySim/exceptions.py index 156ec623..2ffe5f97 100644 --- a/pySim/exceptions.py +++ b/pySim/exceptions.py @@ -21,14 +21,6 @@ # along with this program. If not, see . # -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 fd2e1101..7f99d21d 100644 --- a/pySim/transport/calypso.py +++ b/pySim/transport/calypso.py @@ -20,8 +20,6 @@ # along with this program. If not, see . # -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 ccf608ca..86d4443d 100644 --- a/pySim/transport/modem_atcmd.py +++ b/pySim/transport/modem_atcmd.py @@ -19,8 +19,6 @@ # along with this program. If not, see . # -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 11104b1d..03d3f389 100644 --- a/pySim/transport/serial.py +++ b/pySim/transport/serial.py @@ -20,8 +20,6 @@ # along with this program. If not, see . # -from __future__ import absolute_import - import serial import time import os.path