gitdb icon indicating copy to clipboard operation
gitdb copied to clipboard

codecs.open() is deprecated

Open mtelka opened this issue 2 months ago • 1 comments

Testing with Python 3.14.0 shows this warning:

gitdb/test/db/test_ref.py::TestReferenceDB::test_writing
gitdb/test/db/test_ref.py::TestReferenceDB::test_writing
gitdb/test/db/test_ref.py::TestReferenceDB::test_writing
gitdb/test/db/test_ref.py::TestReferenceDB::test_writing
  $(@D)/gitdb/db/ref.py:45: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
    with codecs.open(self._ref_file, 'r', encoding="utf-8") as f:

mtelka avatar Oct 25 '25 09:10 mtelka

Thanks a lot. If using open in its place is backwards compatible within the v3 version of python, this should be an easy fix.

Byron avatar Oct 26 '25 03:10 Byron