Skip to content
Snippets Groups Projects

import-debian-package: stop using a PosixPath object as context manager

Merged Dylan Aïssi requested to merge wip/daissi/python3.13 into apertis/v2026dev1
All threads resolved!

This is no longer supported since Python 3.13 and leads to the following error:

Traceback (most recent call last):
  File "/builds/pkg/apertis-dev-tools/tests/import-debian-package/../../tools/import-debian-package", line 681, in <module>
    main(sys.argv)
    ~~~~^^^^^^^^^^
  File "/builds/pkg/apertis-dev-tools/tests/import-debian-package/../../tools/import-debian-package", line 666, in main
    do_import(args)
    ~~~~~~~~~^^^^^^
  File "/builds/pkg/apertis-dev-tools/tests/import-debian-package/../../tools/import-debian-package", line 396, in do_import
    with ensure_dir_or_none(args.cache_dir) or TemporaryDirectory() as downloaddir:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'PosixPath' object does not support the context manager protocol

Signed-off-by: Dylan Aïssi dylan.aissi@collabora.com

Edited by Dylan Aïssi

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading