mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-16 18:38:32 +03:00
Python 2 is deprecated, remove backwards compatibility chunks
pySim has already been migrated to Python 3 in another change [1], and the build verification has been migrated to Debian 10 with Python 3.7. However, there is still some backwards compatibility code left. Let's get rid of it. [1] Ic78da9c03e99f59d142c93394051bbc2751f0205 Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> Tweaked-by: Vadim Yanitskiy <vyanitskiy@sysmocom.de> Change-Id: I430d173535e0cd5bb895b9dfc9070cbc40cfc8ff
This commit is contained in:
committed by
Vadim Yanitskiy
parent
1f8acd9884
commit
79f5b6080b
@@ -31,12 +31,7 @@ import random
|
||||
import re
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
try:
|
||||
import json
|
||||
except ImportError:
|
||||
# Python < 2.5
|
||||
import simplejson as json
|
||||
import json
|
||||
|
||||
from pySim.commands import SimCardCommands
|
||||
from pySim.cards import _cards_classes, card_detect
|
||||
|
||||
Reference in New Issue
Block a user