◐ Shell
clean mode source ↗

fix: replace deprecated codecs.open with built-in open (#128) by mvanhorn · Pull Request #134 · gitpython-developers/gitdb

…elopers#128)

Python 3.14 emits a DeprecationWarning for codecs.open(), which gitdb
hits inside ReferenceDB._update_dbs_from_ref_file:

    DeprecationWarning: codecs.open() is deprecated. Use open() instead.

The built-in open() has supported the encoding kwarg since Python 3.0
and the call site already passes encoding="utf-8", so the replacement
is byte-for-byte equivalent on every supported Python version.

Dropped the now-unused codecs import.

Verified the change with the existing test_ref.py suite.

Closes gitpython-developers#128