https://bugs.winehq.org/show_bug.cgi?id=51918
--- Comment #4 from Patrick patrick+winehq.org@laimbock.com --- Created attachment 71046 --> https://bugs.winehq.org/attachment.cgi?id=71046 More py3.10 fixes
More py3.10 fixes in virtualenv.py
Replaced some tabs with spaces.
- if sysconfig._get_default_scheme() == 'posix_local': + if sysconfig.get_default_scheme() == 'posix_local':
And a fix for an assertion due to an incorrect version test: sys.version[:3] gives 3.1 with python 3.10.
- assert os.path.basename(lib_dir) == 'python%s' % sys.version[:3], ( + assert os.path.basename(lib_dir) == 'python%s.%s' % (sys.version_info[0], sys.version_info[1]), (