diff options
author | Armin Rigo <arigo@tunes.org> | 2021-02-19 07:24:37 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2021-02-19 07:24:37 +0100 |
commit | ed6e174881d1b78f3aecf253f8a01fc2cb90fa8e (patch) | |
tree | 2649ad490d8c0002d10e745f4bc0b908e3dba99c /cffi | |
parent | 85737000306397f68667e71c8613bcabf80dd6c3 (diff) | |
download | cffi-ed6e174881d1b78f3aecf253f8a01fc2cb90fa8e.tar.gz |
Fix for sys.version >= (3, 10)
Diffstat (limited to 'cffi')
-rw-r--r-- | cffi/verifier.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cffi/verifier.py b/cffi/verifier.py index 59b78c2..a500c78 100644 --- a/cffi/verifier.py +++ b/cffi/verifier.py @@ -50,7 +50,8 @@ class Verifier(object): if tag: raise TypeError("can't specify both 'modulename' and 'tag'") else: - key = '\x00'.join([sys.version[:3], __version_verifier_modules__, + key = '\x00'.join(['%d.%d' % sys.version_info[:2], + __version_verifier_modules__, preamble, flattened_kwds] + ffi._cdefsources) if sys.version_info >= (3,): |