Bug#986550: python3-debian: debian.arfile: bad Python version checks

Jakub Wilk jwilk at jwilk.net
Wed Apr 7 10:55:11 BST 2021


Package: python3-debian
Version: 0.1.39

debian/arfile.py has the following code in two places:

   if sys.version >= '3.2':
       errors = 'surrogateescape'
   else:
       errors = 'strict'

This will break in Python 3.10.
Please use the sys.version_info tuple instead.

-- 
Jakub Wilk



More information about the pkg-python-debian-maint mailing list