Skip to content
Snippets Groups Projects
Commit b1e0eb23 authored by Dylan Aïssi's avatar Dylan Aïssi
Browse files

Do not use Path objects as a context manager


pathlib.Path.__enter__() is deprecated and scheduled for removal
in Python 3.13. Some warnings are generated with Python 3.11:

/usr/bin/ci-license-scan:267: DeprecationWarning: pathlib.Path.__enter__() is deprecated and scheduled for removal in Python 3.13; Path objects as a context manager is a no-op
  with Path('debian') / 'copyright-scan-patterns.yml' as scan_patterns:
/usr/bin/ci-license-scan:280: DeprecationWarning: pathlib.Path.__enter__() is deprecated and scheduled for removal in Python 3.13; Path objects as a context manager is a no-op
  with Path('debian') / 'fill.copyright.blanks.yml' as debian_copyright_overrides:
/usr/bin/ci-license-scan:296: DeprecationWarning: pathlib.Path.__enter__() is deprecated and scheduled for removal in Python 3.13; Path objects as a context manager is a no-op
  with Path('debian') / 'apertis' / 'copyright.yml' as apertis_copyright_overrides:
/usr/bin/ci-license-scan:204: DeprecationWarning: pathlib.Path.__enter__() is deprecated and scheduled for removal in Python 3.13; Path objects as a context manager is a no-op

Signed-off-by: default avatarDylan Aïssi <dylan.aissi@collabora.com>
parent 2e4ad4b7
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment