Skip to content
Snippets Groups Projects

import-debian-package: do not use Path objects as a context manager

Merged Dylan Aïssi requested to merge wip/daissi/python3.13 into apertis/v2025dev2
Compare changes
  • Side-by-side
  • Inline
Files
1
  • pathlib.Path.__enter__() is deprecated and scheduled for removal
    in Python 3.13. Some warnings are generated with Python 3.11:
    
    import-debian-package:281: 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(".git/info/attributes") as f:
    import-debian-package:225: 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/component') as f:
    import-debian-package:169: 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/changelog") as f:
    
    Signed-off-by: default avatarDylan Aïssi <dylan.aissi@collabora.com>
Loading