svn commit: r348014 - user/ngie/bug-237403/tests/sys/opencrypto
Enji Cooper
ngie at FreeBSD.org
Mon May 20 21:55:46 UTC 2019
Author: ngie
Date: Mon May 20 21:55:45 2019
New Revision: 348014
URL: https://svnweb.freebsd.org/changeset/base/348014
Log:
Add backwards compatibility method for python 2.x
KATParser.__next__ must be called KATParser.next, per PEP-3114.
Modified:
user/ngie/bug-237403/tests/sys/opencrypto/cryptodev.py
Modified: user/ngie/bug-237403/tests/sys/opencrypto/cryptodev.py
==============================================================================
--- user/ngie/bug-237403/tests/sys/opencrypto/cryptodev.py Mon May 20 21:45:00 2019 (r348013)
+++ user/ngie/bug-237403/tests/sys/opencrypto/cryptodev.py Mon May 20 21:55:45 2019 (r348014)
@@ -413,6 +413,9 @@ class KATParser:
yield values
+if sys.version_info[0] < 3:
+ KATParser.next = KATParser.__next__
+
# The CCM files use a bit of a different syntax that doesn't quite fit
# the generic KATParser. In particular, some keys are set globally at
# the start of the file, and some are set globally at the start of a
More information about the svn-src-user
mailing list