Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pyscard for openSUSE:Factory
checked in at 2026-11-04 19:46:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyscard (Old)
and /work/SRC/openSUSE:Factory/.python-pyscard.new.3759290 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyscard"
Wed Nov 4 19:46:51 2026 rev:27 rq:1394874 version:2.3.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyscard/python-pyscard.changes
2025-10-30 17:11:38.491247330 +0100
+++
/work/SRC/openSUSE:Factory/.python-pyscard.new.3759290/python-pyscard.changes
2026-11-04 19:50:34.084227931 +0100
@@ -1,0 +2,7 @@
+Fri Oct 30 19:12:40 UTC 2026 - Martin Hauke <[email protected]>
+
+- Update to version 2.3.2
+ * Add builds for Python 3.14 & 3.15
+ * Minor changes
+
+-------------------------------------------------------------------
Old:
----
pyscard-2.3.1.tar.gz
New:
----
pyscard-2.3.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pyscard.spec ++++++
--- /var/tmp/diff_new_pack.H5zK1h/_old 2026-11-04 19:50:35.072269133 +0100
+++ /var/tmp/diff_new_pack.H5zK1h/_new 2026-11-04 19:50:35.075269258 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pyscard
#
-# Copyright (c) 2025 SUSE LLC and contributors
+# Copyright (c) 2026 SUSE LLC and contributors
# Copyright (c) 2011 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
@@ -19,11 +19,12 @@
%define modname pyscard
Name: python-pyscard
-Version: 2.3.1
+Version: 2.3.2
Release: 0
Summary: Python module adding smart card support
License: LGPL-2.0-or-later
URL: https://pyscard.sourceforge.io/
+#Git-Clone: https://github.com/LudovicRousseau/pyscard.git
Source:
https://files.pythonhosted.org/packages/source/p/pyscard/pyscard-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
++++++ pyscard-2.3.1.tar.gz -> pyscard-2.3.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyscard-2.3.1/ChangeLog new/pyscard-2.3.2/ChangeLog
--- old/pyscard-2.3.1/ChangeLog 2025-10-29 16:32:42.000000000 +0100
+++ new/pyscard-2.3.2/ChangeLog 2026-10-27 16:11:56.963617300 +0100
@@ -1,3 +1,8 @@
+2.3.2 (October 2026)
+====================
+ * add builds for Python 3.14 & 3.15
+ * Minor changes
+
2.3.1 (October 2025)
====================
* Add support of SWIG 4.4.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyscard-2.3.1/Makefile new/pyscard-2.3.2/Makefile
--- old/pyscard-2.3.1/Makefile 2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/Makefile 2026-10-27 15:34:06.991581000 +0100
@@ -12,11 +12,11 @@
$(PYTHON) setup.py clean
rm -rf build
rm -f src/smartcard/scard/_scard*.so
+ rm -f src/smartcard/scard/scard.py
+ rm -f src/smartcard/scard/scard_wrap.c
pypi: clean
# files generated by swig
- rm -f src/smartcard/scard/scard.py
- rm -f src/smartcard/scard/scard_wrap.c
rm -rf dist
# Use the tox 'build' label to generate wheels for all Python versions.
$(TOX) run -m build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyscard-2.3.1/PKG-INFO new/pyscard-2.3.2/PKG-INFO
--- old/pyscard-2.3.1/PKG-INFO 2025-10-29 16:48:59.825123800 +0100
+++ new/pyscard-2.3.2/PKG-INFO 2026-10-27 16:35:42.651762000 +0100
@@ -1,9 +1,9 @@
Metadata-Version: 2.4
Name: pyscard
-Version: 2.3.1
+Version: 2.3.2
Summary: Smartcard module for Python.
Home-page: https://github.com/LudovicRousseau/pyscard
-Download-URL:
https://sourceforge.net/projects/pyscard/files/pyscard/pyscard%202.3.1/pyscard-2.3.1.tar.gz/download
+Download-URL:
https://sourceforge.net/projects/pyscard/files/pyscard/pyscard%202.3.2/pyscard-2.3.2.tar.gz/download
Author: Ludovic Rousseau
Author-email: [email protected]
Platform: linux
@@ -19,6 +19,8 @@
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
+Classifier: Programming Language :: Python :: 3.14
+Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Security
Requires-Python: >=3.9
License-File: LICENSE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyscard-2.3.1/setup.py new/pyscard-2.3.2/setup.py
--- old/pyscard-2.3.1/setup.py 2025-10-29 16:32:54.000000000 +0100
+++ new/pyscard-2.3.2/setup.py 2026-10-27 16:10:24.977167100 +0100
@@ -65,7 +65,7 @@
except:
platform_include_dirs = ["/usr/include/PCSC",
"/usr/local/include/PCSC"]
-VERSION_INFO = (2, 3, 1, 0)
+VERSION_INFO = (2, 3, 2, 0)
VERSION_STR = "%i.%i.%i" % VERSION_INFO[:3]
VERSION_ALT = "%i,%01i,%01i,%04i" % VERSION_INFO
@@ -147,6 +147,8 @@
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
+ "Programming Language :: Python :: 3.14",
+ "Programming Language :: Python :: 3.15",
"Topic :: Security",
],
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyscard-2.3.1/src/pyscard.egg-info/PKG-INFO
new/pyscard-2.3.2/src/pyscard.egg-info/PKG-INFO
--- old/pyscard-2.3.1/src/pyscard.egg-info/PKG-INFO 2025-10-29
16:48:59.000000000 +0100
+++ new/pyscard-2.3.2/src/pyscard.egg-info/PKG-INFO 2026-10-27
16:35:42.619705400 +0100
@@ -1,9 +1,9 @@
Metadata-Version: 2.4
Name: pyscard
-Version: 2.3.1
+Version: 2.3.2
Summary: Smartcard module for Python.
Home-page: https://github.com/LudovicRousseau/pyscard
-Download-URL:
https://sourceforge.net/projects/pyscard/files/pyscard/pyscard%202.3.1/pyscard-2.3.1.tar.gz/download
+Download-URL:
https://sourceforge.net/projects/pyscard/files/pyscard/pyscard%202.3.2/pyscard-2.3.2.tar.gz/download
Author: Ludovic Rousseau
Author-email: [email protected]
Platform: linux
@@ -19,6 +19,8 @@
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
+Classifier: Programming Language :: Python :: 3.14
+Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Security
Requires-Python: >=3.9
License-File: LICENSE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyscard-2.3.1/src/pyscard.egg-info/SOURCES.txt
new/pyscard-2.3.2/src/pyscard.egg-info/SOURCES.txt
--- old/pyscard-2.3.1/src/pyscard.egg-info/SOURCES.txt 2025-10-29
16:48:59.000000000 +0100
+++ new/pyscard-2.3.2/src/pyscard.egg-info/SOURCES.txt 2026-10-27
16:35:42.632053600 +0100
@@ -113,7 +113,6 @@
src/smartcard/sw/__init__.py
src/smartcard/sw/op21_ErrorChecker.py
src/smartcard/test/configcheck.py
-src/smartcard/test/framework/local_config.py
src/smartcard/test/framework/readme.txt
src/smartcard/test/framework/testcase_ATR.py
src/smartcard/test/framework/testcase_CAtr.py
@@ -132,11 +131,9 @@
src/smartcard/test/framework/testcase_ulist.py
src/smartcard/test/framework/testcase_utils.py
src/smartcard/test/framework/testsuite_framework.py
-src/smartcard/test/frameworkpcsc/local_config.py
src/smartcard/test/frameworkpcsc/readme.txt
src/smartcard/test/frameworkpcsc/testcase_pcscreadergroups.py
src/smartcard/test/frameworkpcsc/testsuite_frameworkpcsc.py
-src/smartcard/test/scard/local_config.py
src/smartcard/test/scard/readme.txt
src/smartcard/test/scard/testcase_getatr.py
src/smartcard/test/scard/testcase_getattrib.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/Examples/framework/sample_ATR.py
new/pyscard-2.3.2/src/smartcard/Examples/framework/sample_ATR.py
--- old/pyscard-2.3.1/src/smartcard/Examples/framework/sample_ATR.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/Examples/framework/sample_ATR.py
2026-08-22 10:17:17.680545300 +0200
@@ -26,6 +26,7 @@
along with pyscard; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
+
from smartcard.ATR import ATR
from smartcard.util import toHexString
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/Examples/framework/sample_CardConnectionDecorator.py
new/pyscard-2.3.2/src/smartcard/Examples/framework/sample_CardConnectionDecorator.py
---
old/pyscard-2.3.1/src/smartcard/Examples/framework/sample_CardConnectionDecorator.py
2025-07-30 14:37:13.000000000 +0200
+++
new/pyscard-2.3.2/src/smartcard/Examples/framework/sample_CardConnectionDecorator.py
2026-08-22 10:17:17.680545300 +0200
@@ -27,6 +27,7 @@
along with pyscard; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
+
import sys
from smartcard.CardConnectionDecorator import CardConnectionDecorator
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/Examples/framework/sample_ConsoleConnectionTracer.py
new/pyscard-2.3.2/src/smartcard/Examples/framework/sample_ConsoleConnectionTracer.py
---
old/pyscard-2.3.1/src/smartcard/Examples/framework/sample_ConsoleConnectionTracer.py
2025-07-30 14:37:13.000000000 +0200
+++
new/pyscard-2.3.2/src/smartcard/Examples/framework/sample_ConsoleConnectionTracer.py
2026-08-22 10:17:17.680545300 +0200
@@ -27,6 +27,7 @@
along with pyscard; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
+
import sys
from smartcard.CardConnectionObserver import ConsoleCardConnectionObserver
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/Examples/framework/sample_CustomCardType.py
new/pyscard-2.3.2/src/smartcard/Examples/framework/sample_CustomCardType.py
--- old/pyscard-2.3.1/src/smartcard/Examples/framework/sample_CustomCardType.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/Examples/framework/sample_CustomCardType.py
2026-08-22 10:17:17.680545300 +0200
@@ -28,6 +28,7 @@
along with pyscard; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
+
import sys
from smartcard.CardRequest import CardRequest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/Examples/framework/sample_ErrorChecking.py
new/pyscard-2.3.2/src/smartcard/Examples/framework/sample_ErrorChecking.py
--- old/pyscard-2.3.1/src/smartcard/Examples/framework/sample_ErrorChecking.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/Examples/framework/sample_ErrorChecking.py
2026-08-22 10:17:17.680545300 +0200
@@ -27,7 +27,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
from smartcard.CardConnectionObserver import ConsoleCardConnectionObserver
from smartcard.CardRequest import CardRequest
from smartcard.CardType import AnyCardType
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/Examples/framework/sample_MonitorCards.py
new/pyscard-2.3.2/src/smartcard/Examples/framework/sample_MonitorCards.py
--- old/pyscard-2.3.1/src/smartcard/Examples/framework/sample_MonitorCards.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/Examples/framework/sample_MonitorCards.py
2026-08-22 10:17:17.680545300 +0200
@@ -42,7 +42,7 @@
"""
def update(self, observable, handlers):
- (addedcards, removedcards) = handlers
+ addedcards, removedcards = handlers
for card in addedcards:
print("+Inserted: ", toHexString(card.atr))
for card in removedcards:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/Examples/framework/sample_MonitorCardsAndTransmit.py
new/pyscard-2.3.2/src/smartcard/Examples/framework/sample_MonitorCardsAndTransmit.py
---
old/pyscard-2.3.1/src/smartcard/Examples/framework/sample_MonitorCardsAndTransmit.py
2025-07-30 14:37:13.000000000 +0200
+++
new/pyscard-2.3.2/src/smartcard/Examples/framework/sample_MonitorCardsAndTransmit.py
2026-08-22 10:17:17.681819200 +0200
@@ -52,7 +52,7 @@
self.observer = ConsoleCardConnectionObserver()
def update(self, observable, handlers):
- (addedcards, removedcards) = handlers
+ addedcards, removedcards = handlers
for card in addedcards:
print("+Inserted: ", toHexString(card.atr))
card.connection = card.createConnection()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/Examples/framework/sample_MonitorReaders.py
new/pyscard-2.3.2/src/smartcard/Examples/framework/sample_MonitorReaders.py
--- old/pyscard-2.3.1/src/smartcard/Examples/framework/sample_MonitorReaders.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/Examples/framework/sample_MonitorReaders.py
2026-08-22 10:17:17.681819200 +0200
@@ -40,7 +40,7 @@
"""
def update(self, observable, handlers):
- (addedreaders, removedreaders) = handlers
+ addedreaders, removedreaders = handlers
print("Added readers", addedreaders)
print("Removed readers", removedreaders)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/Examples/framework/sample_TransmitCardObserver.py
new/pyscard-2.3.2/src/smartcard/Examples/framework/sample_TransmitCardObserver.py
---
old/pyscard-2.3.1/src/smartcard/Examples/framework/sample_TransmitCardObserver.py
2025-07-30 14:37:13.000000000 +0200
+++
new/pyscard-2.3.2/src/smartcard/Examples/framework/sample_TransmitCardObserver.py
2026-08-22 10:17:17.681819200 +0200
@@ -28,6 +28,7 @@
along with pyscard; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
+
from time import sleep
from smartcard.CardMonitoring import CardMonitor, CardObserver
@@ -46,7 +47,7 @@
self.cards = []
def update(self, observable, handlers):
- (addedcards, removedcards) = handlers
+ addedcards, removedcards = handlers
for card in addedcards:
if card not in self.cards:
self.cards += [card]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/Examples/simple/getATR.py
new/pyscard-2.3.2/src/smartcard/Examples/simple/getATR.py
--- old/pyscard-2.3.1/src/smartcard/Examples/simple/getATR.py 2025-04-09
22:19:29.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/Examples/simple/getATR.py 2026-08-22
10:17:17.681819200 +0200
@@ -25,6 +25,7 @@
along with pyscard; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
+
import sys
from smartcard.Exceptions import NoCardException
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/Examples/simple/getATR_context.py
new/pyscard-2.3.2/src/smartcard/Examples/simple/getATR_context.py
--- old/pyscard-2.3.1/src/smartcard/Examples/simple/getATR_context.py
2025-04-09 22:19:14.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/Examples/simple/getATR_context.py
2026-08-22 10:17:17.681819200 +0200
@@ -25,6 +25,7 @@
along with pyscard; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
+
import sys
from smartcard.Exceptions import NoCardException
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/Examples/simple/selectDF_TELECOM.py
new/pyscard-2.3.2/src/smartcard/Examples/simple/selectDF_TELECOM.py
--- old/pyscard-2.3.1/src/smartcard/Examples/simple/selectDF_TELECOM.py
2025-04-09 22:19:29.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/Examples/simple/selectDF_TELECOM.py
2026-08-22 10:17:17.681819200 +0200
@@ -25,6 +25,7 @@
along with pyscard; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
+
import sys
from smartcard.CardConnectionObserver import ConsoleCardConnectionObserver
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/Examples/wx/apdumanager/SampleAPDUManagerPanel.py
new/pyscard-2.3.2/src/smartcard/Examples/wx/apdumanager/SampleAPDUManagerPanel.py
---
old/pyscard-2.3.1/src/smartcard/Examples/wx/apdumanager/SampleAPDUManagerPanel.py
2025-04-09 22:19:14.000000000 +0200
+++
new/pyscard-2.3.2/src/smartcard/Examples/wx/apdumanager/SampleAPDUManagerPanel.py
2026-08-22 10:17:17.681819200 +0200
@@ -23,6 +23,7 @@
along with pyscard; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
+
import wx
from smartcard.util import toBytes, toHexString
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyscard-2.3.1/src/smartcard/test/configcheck.py
new/pyscard-2.3.2/src/smartcard/test/configcheck.py
--- old/pyscard-2.3.1/src/smartcard/test/configcheck.py 2025-07-30
14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/configcheck.py 2026-08-22
10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
import os.path
import time
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/framework/local_config.py
new/pyscard-2.3.2/src/smartcard/test/framework/local_config.py
--- old/pyscard-2.3.1/src/smartcard/test/framework/local_config.py
2025-07-30 22:01:54.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/framework/local_config.py
1970-01-01 01:00:00.000000000 +0100
@@ -1,11 +0,0 @@
-"""Do not edit by hand"""
-from smartcard.util import toHexString
-expectedReaders = ['Gemalto PC Twin Reader', 'Gemalto PC Twin Reader 01']
-expectedATRs = [[59, 167, 0, 64, 24, 128, 101, 162, 8, 1, 1, 82], [59, 111, 0,
0, 128, 90, 40, 19, 2, 16, 18, 43, 117, 13, 211, 130, 130, 144, 0]]
-expectedATRinReader = {}
-for i, reader in enumerate(expectedReaders):
- expectedATRinReader[reader] = expectedATRs[i]
-expectedReaderForATR = {}
-for i, reader in enumerate(expectedReaders):
- expectedReaderForATR[toHexString(expectedATRs[i])] = reader
-expectedReaderGroups = ['SCard$DefaultReaders']
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/framework/testcase_Card.py
new/pyscard-2.3.2/src/smartcard/test/framework/testcase_Card.py
--- old/pyscard-2.3.1/src/smartcard/test/framework/testcase_Card.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/framework/testcase_Card.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
import sys
import unittest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/framework/testcase_CardConnection.py
new/pyscard-2.3.2/src/smartcard/test/framework/testcase_CardConnection.py
--- old/pyscard-2.3.1/src/smartcard/test/framework/testcase_CardConnection.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/framework/testcase_CardConnection.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
import sys
import unittest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/framework/testcase_CardMonitor.py
new/pyscard-2.3.2/src/smartcard/test/framework/testcase_CardMonitor.py
--- old/pyscard-2.3.1/src/smartcard/test/framework/testcase_CardMonitor.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/framework/testcase_CardMonitor.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
import sys
import threading
import time
@@ -54,7 +53,7 @@
self.testcase = testcase
def update(self, observable, handlers):
- (addedcards, removedcards) = handlers
+ addedcards, removedcards = handlers
foundcards = {}
self.testcase.assertEqual(removedcards, [])
for card in addedcards:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/framework/testcase_CardRequest.py
new/pyscard-2.3.2/src/smartcard/test/framework/testcase_CardRequest.py
--- old/pyscard-2.3.1/src/smartcard/test/framework/testcase_CardRequest.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/framework/testcase_CardRequest.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
# import local_config for reader/card configuration
# configcheck.py is generating local_config.py in
# the test suite.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/framework/testcase_CardType.py
new/pyscard-2.3.2/src/smartcard/test/framework/testcase_CardType.py
--- old/pyscard-2.3.1/src/smartcard/test/framework/testcase_CardType.py
2025-04-09 22:19:29.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/framework/testcase_CardType.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
# import local_config for reader/card configuration
# configcheck.py is generating local_config.py in
# the test suite.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/framework/testcase_ErrorChecking.py
new/pyscard-2.3.2/src/smartcard/test/framework/testcase_ErrorChecking.py
--- old/pyscard-2.3.1/src/smartcard/test/framework/testcase_ErrorChecking.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/framework/testcase_ErrorChecking.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
import unittest
import smartcard.sw.SWExceptions
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/framework/testcase_ExclusiveCardConnection.py
new/pyscard-2.3.2/src/smartcard/test/framework/testcase_ExclusiveCardConnection.py
---
old/pyscard-2.3.1/src/smartcard/test/framework/testcase_ExclusiveCardConnection.py
2025-04-09 22:19:14.000000000 +0200
+++
new/pyscard-2.3.2/src/smartcard/test/framework/testcase_ExclusiveCardConnection.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
import random
import threading
import time
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/framework/testcase_readermonitor.py
new/pyscard-2.3.2/src/smartcard/test/framework/testcase_readermonitor.py
--- old/pyscard-2.3.1/src/smartcard/test/framework/testcase_readermonitor.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/framework/testcase_readermonitor.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
import sys
import threading
import time
@@ -54,7 +53,7 @@
self.testcase = testcase
def update(self, observable, handlers):
- (addedreaders, removedreaders) = handlers
+ addedreaders, removedreaders = handlers
foundreaders = {}
self.testcase.assertEqual(removedreaders, [])
for reader in addedreaders:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/framework/testcase_readermonitorstress.py
new/pyscard-2.3.2/src/smartcard/test/framework/testcase_readermonitorstress.py
---
old/pyscard-2.3.1/src/smartcard/test/framework/testcase_readermonitorstress.py
2025-07-30 14:37:13.000000000 +0200
+++
new/pyscard-2.3.2/src/smartcard/test/framework/testcase_readermonitorstress.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
import random
import threading
import time
@@ -121,7 +120,7 @@
self.countnotified = 0
def update(self, observable, handlers):
- (addedreaders, removedreaders) = handlers
+ addedreaders, removedreaders = handlers
self.countnotified += 1
for newreader in addedreaders:
if newreader in self.insertedreaderstats:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/framework/testcase_readers.py
new/pyscard-2.3.2/src/smartcard/test/framework/testcase_readers.py
--- old/pyscard-2.3.1/src/smartcard/test/framework/testcase_readers.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/framework/testcase_readers.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
import sys
import unittest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/framework/testcase_utils.py
new/pyscard-2.3.2/src/smartcard/test/framework/testcase_utils.py
--- old/pyscard-2.3.1/src/smartcard/test/framework/testcase_utils.py
2025-04-09 22:19:14.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/framework/testcase_utils.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
import unittest
from smartcard.util import (
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/frameworkpcsc/local_config.py
new/pyscard-2.3.2/src/smartcard/test/frameworkpcsc/local_config.py
--- old/pyscard-2.3.1/src/smartcard/test/frameworkpcsc/local_config.py
2025-07-30 22:01:50.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/frameworkpcsc/local_config.py
1970-01-01 01:00:00.000000000 +0100
@@ -1,11 +0,0 @@
-"""Do not edit by hand"""
-from smartcard.util import toHexString
-expectedReaders = ['Gemalto PC Twin Reader', 'Gemalto PC Twin Reader 01']
-expectedATRs = [[59, 167, 0, 64, 24, 128, 101, 162, 8, 1, 1, 82], [59, 111, 0,
0, 128, 90, 40, 19, 2, 16, 18, 43, 117, 13, 211, 130, 130, 144, 0]]
-expectedATRinReader = {}
-for i, reader in enumerate(expectedReaders):
- expectedATRinReader[reader] = expectedATRs[i]
-expectedReaderForATR = {}
-for i, reader in enumerate(expectedReaders):
- expectedReaderForATR[toHexString(expectedATRs[i])] = reader
-expectedReaderGroups = ['SCard$DefaultReaders']
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/frameworkpcsc/testcase_pcscreadergroups.py
new/pyscard-2.3.2/src/smartcard/test/frameworkpcsc/testcase_pcscreadergroups.py
---
old/pyscard-2.3.1/src/smartcard/test/frameworkpcsc/testcase_pcscreadergroups.py
2025-07-30 14:37:13.000000000 +0200
+++
new/pyscard-2.3.2/src/smartcard/test/frameworkpcsc/testcase_pcscreadergroups.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
# import local_config for reader/card configuration
# configcheck.py is generating local_config.py in
# the test suite.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/scard/local_config.py
new/pyscard-2.3.2/src/smartcard/test/scard/local_config.py
--- old/pyscard-2.3.1/src/smartcard/test/scard/local_config.py 2025-07-30
22:01:40.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/scard/local_config.py 1970-01-01
01:00:00.000000000 +0100
@@ -1,11 +0,0 @@
-"""Do not edit by hand"""
-from smartcard.util import toHexString
-expectedReaders = ['Gemalto PC Twin Reader', 'Gemalto PC Twin Reader 01']
-expectedATRs = [[59, 167, 0, 64, 24, 128, 101, 162, 8, 1, 1, 82], [59, 111, 0,
0, 128, 90, 40, 19, 2, 16, 18, 43, 117, 13, 211, 130, 130, 144, 0]]
-expectedATRinReader = {}
-for i, reader in enumerate(expectedReaders):
- expectedATRinReader[reader] = expectedATRs[i]
-expectedReaderForATR = {}
-for i, reader in enumerate(expectedReaders):
- expectedReaderForATR[toHexString(expectedATRs[i])] = reader
-expectedReaderGroups = ['SCard$DefaultReaders']
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/scard/testcase_getatr.py
new/pyscard-2.3.2/src/smartcard/test/scard/testcase_getatr.py
--- old/pyscard-2.3.1/src/smartcard/test/scard/testcase_getatr.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/scard/testcase_getatr.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
# import local_config for reader/card configuration
# configcheck.py is generating local_config.py in
# the test suite.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/scard/testcase_getattrib.py
new/pyscard-2.3.2/src/smartcard/test/scard/testcase_getattrib.py
--- old/pyscard-2.3.1/src/smartcard/test/scard/testcase_getattrib.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/scard/testcase_getattrib.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
# import local_config for reader/card configuration
# configcheck.py is generating local_config.py in
# the test suite.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/scard/testcase_geterrormessage.py
new/pyscard-2.3.2/src/smartcard/test/scard/testcase_geterrormessage.py
--- old/pyscard-2.3.1/src/smartcard/test/scard/testcase_geterrormessage.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/scard/testcase_geterrormessage.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
import sys
import unittest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/scard/testcase_listcards.py
new/pyscard-2.3.2/src/smartcard/test/scard/testcase_listcards.py
--- old/pyscard-2.3.1/src/smartcard/test/scard/testcase_listcards.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/scard/testcase_listcards.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
import unittest
import smartcard.guid
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/scard/testcase_readergroups.py
new/pyscard-2.3.2/src/smartcard/test/scard/testcase_readergroups.py
--- old/pyscard-2.3.1/src/smartcard/test/scard/testcase_readergroups.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/scard/testcase_readergroups.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
# import local_config for reader/card configuration
# configcheck.py is generating local_config.py in
# the test suite.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/scard/testcase_returncodes.py
new/pyscard-2.3.2/src/smartcard/test/scard/testcase_returncodes.py
--- old/pyscard-2.3.1/src/smartcard/test/scard/testcase_returncodes.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/scard/testcase_returncodes.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
import unittest
from smartcard.scard import (
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/scard/testcase_transaction.py
new/pyscard-2.3.2/src/smartcard/test/scard/testcase_transaction.py
--- old/pyscard-2.3.1/src/smartcard/test/scard/testcase_transaction.py
2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/scard/testcase_transaction.py
2026-08-22 10:17:17.681819200 +0200
@@ -26,7 +26,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
# import local_config for reader/card configuration
# configcheck.py is generating local_config.py in
# the test suite.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/test/scard/testsuite_scard.py
new/pyscard-2.3.2/src/smartcard/test/scard/testsuite_scard.py
--- old/pyscard-2.3.1/src/smartcard/test/scard/testsuite_scard.py
2025-04-09 22:19:14.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/test/scard/testsuite_scard.py
2026-08-22 10:17:17.681819200 +0200
@@ -23,7 +23,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
-
import sys
import unittest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyscard-2.3.1/src/smartcard/wx/CardAndReaderTreePanel.py
new/pyscard-2.3.2/src/smartcard/wx/CardAndReaderTreePanel.py
--- old/pyscard-2.3.1/src/smartcard/wx/CardAndReaderTreePanel.py
2025-04-09 22:19:14.000000000 +0200
+++ new/pyscard-2.3.2/src/smartcard/wx/CardAndReaderTreePanel.py
2026-08-22 10:17:17.681819200 +0200
@@ -122,11 +122,11 @@
Removes a card from the tree."""
parentnode = self.root
for cardtoremove in removedcards:
- (childCard, cookie) = self.GetFirstChild(parentnode)
+ childCard, cookie = self.GetFirstChild(parentnode)
while childCard.IsOk():
if self.GetItemText(childCard) ==
toHexString(cardtoremove.atr):
self.Delete(childCard)
- (childCard, cookie) = self.GetNextChild(parentnode, cookie)
+ childCard, cookie = self.GetNextChild(parentnode, cookie)
self.Expand(self.root)
self.EnsureVisible(self.root)
self.Repaint()
@@ -190,16 +190,16 @@
try:
parentnode = self.root
for cardtoadd in addedcards:
- (childReader, cookie) = self.GetFirstChild(parentnode)
+ childReader, cookie = self.GetFirstChild(parentnode)
found = False
while childReader.IsOk() and not found:
if self.GetItemText(childReader) == str(cardtoadd.reader):
- (childCard, cookie2) = self.GetFirstChild(childReader)
+ childCard, cookie2 = self.GetFirstChild(childReader)
self.SetItemText(childCard, toHexString(cardtoadd.atr))
self.SetItemData(childCard, cardtoadd)
found = True
else:
- (childReader, cookie) = self.GetNextChild(parentnode,
cookie)
+ childReader, cookie = self.GetNextChild(parentnode,
cookie)
# reader was not found, add reader node
# this happens when card monitoring thread signals
@@ -234,12 +234,12 @@
for readertoadd in addedreaders:
# is the reader already here?
found = False
- (childReader, cookie) = self.GetFirstChild(parentnode)
+ childReader, cookie = self.GetFirstChild(parentnode)
while childReader.IsOk() and not found:
if self.GetItemText(childReader) == str(readertoadd):
found = True
else:
- (childReader, cookie) = self.GetNextChild(parentnode,
cookie)
+ childReader, cookie = self.GetNextChild(parentnode,
cookie)
if not found:
childReader = self.AppendItem(parentnode, str(readertoadd))
self.SetItemData(childReader, readertoadd)
@@ -264,15 +264,15 @@
try:
parentnode = self.root
for cardtoremove in removedcards:
- (childReader, cookie) = self.GetFirstChild(parentnode)
+ childReader, cookie = self.GetFirstChild(parentnode)
found = False
while childReader.IsOk() and not found:
if self.GetItemText(childReader) ==
str(cardtoremove.reader):
- (childCard, cookie2) = self.GetFirstChild(childReader)
+ childCard, cookie2 = self.GetFirstChild(childReader)
self.SetItemText(childCard, "no card inserted")
found = True
else:
- (childReader, cookie) = self.GetNextChild(parentnode,
cookie)
+ childReader, cookie = self.GetNextChild(parentnode,
cookie)
self.Expand(self.root)
finally:
self.mutex.release()
@@ -286,12 +286,12 @@
try:
parentnode = self.root
for readertoremove in removedreaders:
- (childReader, cookie) = self.GetFirstChild(parentnode)
+ childReader, cookie = self.GetFirstChild(parentnode)
while childReader.IsOk():
if self.GetItemText(childReader) == str(readertoremove):
self.Delete(childReader)
else:
- (childReader, cookie) = self.GetNextChild(parentnode,
cookie)
+ childReader, cookie = self.GetNextChild(parentnode,
cookie)
self.Expand(self.root)
finally:
self.mutex.release()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyscard-2.3.1/test/test_ATR.py
new/pyscard-2.3.2/test/test_ATR.py
--- old/pyscard-2.3.1/test/test_ATR.py 2025-07-30 14:37:13.000000000 +0200
+++ new/pyscard-2.3.2/test/test_ATR.py 2026-08-22 10:17:17.681819200 +0200
@@ -14,8 +14,7 @@
def test_atr1(capsys):
atr = [0x3F, 0x65, 0x25, 0x00, 0x2C, 0x09, 0x69, 0x90, 0x00]
- data_out = textwrap.dedent(
- """\
+ data_out = textwrap.dedent("""\
TB1: 25
TC1: 0
supported protocols T=0
@@ -28,8 +27,7 @@
\tguard time: 0
nb of interface bytes: 2
nb of historical bytes: 5
- """
- )
+ """)
a = ATR(atr)
with pytest.warns(DeprecationWarning,
match=re.escape("print(ATR.render())")):
a.dump()
@@ -39,8 +37,7 @@
def test_atr2(capsys):
atr = [0x3F, 0x65, 0x25, 0x08, 0x93, 0x04, 0x6C, 0x90, 0x00]
- data_out = textwrap.dedent(
- """\
+ data_out = textwrap.dedent("""\
TB1: 25
TC1: 8
supported protocols T=0
@@ -53,8 +50,7 @@
\tguard time: 8
nb of interface bytes: 2
nb of historical bytes: 5
- """
- )
+ """)
a = ATR(atr)
with pytest.warns(DeprecationWarning,
match=re.escape("print(ATR.render())")):
a.dump()
@@ -64,8 +60,7 @@
def test_atr3(capsys):
atr = [0x3B, 0x16, 0x94, 0x7C, 0x03, 0x01, 0x00, 0x00, 0x0D]
- data_out = textwrap.dedent(
- """\
+ data_out = textwrap.dedent("""\
TA1: 94
supported protocols T=0
T=0 supported: True
@@ -77,8 +72,7 @@
\tguard time: None
nb of interface bytes: 1
nb of historical bytes: 6
- """
- )
+ """)
a = ATR(atr)
with pytest.warns(DeprecationWarning,
match=re.escape("print(ATR.render())")):
a.dump()
@@ -88,8 +82,7 @@
def test_atr4(capsys):
atr = [0x3B, 0x65, 0x00, 0x00, 0x9C, 0x11, 0x01, 0x01, 0x03]
- data_out = textwrap.dedent(
- """\
+ data_out = textwrap.dedent("""\
TB1: 0
TC1: 0
supported protocols T=0
@@ -102,8 +95,7 @@
\tguard time: 0
nb of interface bytes: 2
nb of historical bytes: 5
- """
- )
+ """)
a = ATR(atr)
with pytest.warns(DeprecationWarning,
match=re.escape("print(ATR.render())")):
a.dump()
@@ -113,8 +105,7 @@
def test_atr5(capsys):
atr = [0x3B, 0xE3, 0x00, 0xFF, 0x81, 0x31, 0x52, 0x45, 0xA1, 0xA2, 0xA3,
0x1B]
- data_out = textwrap.dedent(
- """\
+ data_out = textwrap.dedent("""\
TB1: 0
TC1: ff
TD1: 81
@@ -132,8 +123,7 @@
\tguard time: 255
nb of interface bytes: 6
nb of historical bytes: 3
- """
- )
+ """)
a = ATR(atr)
with pytest.warns(DeprecationWarning,
match=re.escape("print(ATR.render())")):
a.dump()
@@ -143,8 +133,7 @@
def test_atr6(capsys):
atr = [0x3B, 0xE5, 0x00, 0x00, 0x81, 0x21, 0x45, 0x9C, 0x10, 0x01, 0x00,
0x80, 0x0D]
- data_out = textwrap.dedent(
- """\
+ data_out = textwrap.dedent("""\
TB1: 0
TC1: 0
TD1: 81
@@ -161,8 +150,7 @@
\tguard time: 0
nb of interface bytes: 5
nb of historical bytes: 5
- """
- )
+ """)
a = ATR(atr)
with pytest.warns(DeprecationWarning,
match=re.escape("print(ATR.render())")):
a.dump()
@@ -262,8 +250,7 @@
assert atr.isT15Supported() is False
# Rendering
- expected_rendering = textwrap.dedent(
- """\
+ expected_rendering = textwrap.dedent("""\
supported protocols T=0
T=0 supported: True
T=1 supported: False
@@ -274,8 +261,7 @@
\tguard time: None
nb of interface bytes: 0
nb of historical bytes: 0
- """.rstrip()
- )
+ """.rstrip())
assert atr.render() == expected_rendering
# Warnings