Change in pysim[master]: transport/pcsc: cosmetic: reuse the existing code of PcscSimLink

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Sun Mar 1 19:22:04 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/17278 )

Change subject: transport/pcsc: cosmetic: reuse the existing code of PcscSimLink
......................................................................

transport/pcsc: cosmetic: reuse the existing code of PcscSimLink

Change-Id: I5360df644032b95654e99ccaa5118952e8d55faf
---
M pySim/transport/pcsc.py
1 file changed, 2 insertions(+), 5 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/pySim/transport/pcsc.py b/pySim/transport/pcsc.py
index 47c4185..7fa922f 100644
--- a/pySim/transport/pcsc.py
+++ b/pySim/transport/pcsc.py
@@ -63,11 +63,8 @@
 		self._con.disconnect()
 
 	def reset_card(self):
-		self._con.disconnect()
-		try:
-			self._con.connect()
-		except NoCardException:
-			raise NoCardError()
+		self.disconnect()
+		self.connect()
 		return 1
 
 	def send_apdu_raw(self, pdu):

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

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I5360df644032b95654e99ccaa5118952e8d55faf
Gerrit-Change-Number: 17278
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200301/dadd04bb/attachment.htm>


More information about the gerrit-log mailing list