bip-0375/deps/dleq.py is a copy of the BIP-374 reference code, used by the BIP-375 validator to check PSBT_GLOBAL_SP_DLEQ / PSBT_IN_SP_DLEQ proofs. It was taken before #2262, so it still uses the raw challenge hash as e and doesn't reject proofs with e >= n.
This applies the same two changes to the copy. After this the functions match bip-0374/reference.py line for line (apart from the unit tests). A challenge hash >= n has negligible probability, so nothing changes in practice: test_runner.py still passes all 42 vectors, and the 17 BIP-374 verify vectors give the same results before and after. It just keeps the copy from drifting from the spec.