Change in pysim[master]: Get rid of Python 2 specific compatibility leftovers

fixeria gerrit-no-reply at lists.osmocom.org
Thu Mar 11 21:59:45 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/23325 )


Change subject: Get rid of Python 2 specific compatibility leftovers
......................................................................

Get rid of Python 2 specific compatibility leftovers

Change-Id: I0068caa775d89349db2ad378fad22e89832b8d20
---
M pySim/exceptions.py
M pySim/transport/calypso.py
M pySim/transport/modem_atcmd.py
M pySim/transport/serial.py
4 files changed, 0 insertions(+), 14 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/25/23325/1

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

-- 
To view, visit https://gerrit.osmocom.org/c/pysim/+/23325
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I0068caa775d89349db2ad378fad22e89832b8d20
Gerrit-Change-Number: 23325
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210311/d2cf8c82/attachment.htm>


More information about the gerrit-log mailing list