comparison pipcl.py @ 43:202a1f38a622

FIX: New added code snippets did not yet account for the changed return values from "_fromto()"
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 11 Oct 2025 17:15:08 +0200
parents 71bcc18e306f
children
comparison
equal deleted inserted replaced
42:4621bd954a09 43:202a1f38a622
1039 # 1039 #
1040 # (We could possibly allow package py_limited_api=False and extensions 1040 # (We could possibly allow package py_limited_api=False and extensions
1041 # py_limited_api=True, but haven't tested this, and it seems simpler to 1041 # py_limited_api=True, but haven't tested this, and it seems simpler to
1042 # be strict.) 1042 # be strict.)
1043 for item in ret: 1043 for item in ret:
1044 from_, (to_abs, to_rel) = self._fromto(item) 1044 from_, (to_abs, to_rel, _) = self._fromto(item)
1045 from_abs = os.path.abspath(from_) 1045 from_abs = os.path.abspath(from_)
1046 is_py_limited_api = _extensions_to_py_limited_api.get(from_abs) 1046 is_py_limited_api = _extensions_to_py_limited_api.get(from_abs)
1047 if is_py_limited_api is not None: 1047 if is_py_limited_api is not None:
1048 assert bool(self.py_limited_api) == bool(is_py_limited_api), ( 1048 assert bool(self.py_limited_api) == bool(is_py_limited_api), (
1049 f'Extension was built with' 1049 f'Extension was built with'