Add _lzma.CHECK_ID_MAX and remove duplicate _os.{SEEK_CUR,SEEK_END}#7156
Conversation
📝 WalkthroughWalkthroughTwo constant refactorings across stdlib modules: the LZMA module introduces CHECK_ID_MAX and restructures CHECK_UNKNOWN to depend on it, while the OS module removes imports of seek-related constants. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
⚔️ Resolve merge conflicts (beta)
No actionable comments were generated in the recent review. 🎉 Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
42c3d22 to
c942941
Compare
📦 Library DependenciesThe following Lib/ modules were modified. Here are their dependencies: [x] test: cpython/Lib/test/test___all__.py dependencies: dependent tests: (no tests depend on all) [x] lib: cpython/Lib/codecs.py dependencies:
dependent tests: (124 tests)
[x] lib: cpython/Lib/configparser.py dependencies:
dependent tests: (2 tests)
[x] lib: cpython/Lib/lzma.py dependencies:
dependent tests: (1 tests)
[x] lib: cpython/Lib/urllib dependencies:
dependent tests: (27 tests)
Legend:
|
This pull request ensures that the tests checking whether each module correctly defines
__all__now pass.First, I resolved an issue in the
Lib/os.pymodule whereSEEK_CURandSEEK_ENDwere being defined and used while also being provided by_os.Additionally, I defined
CHECK_ID_MAX, which was previously undefined in_lzma. I also updatedCHECK_UNKNOWNto use the valueCHECK_ID_MAX + 1, consistent with the CPython implementation.Summary by CodeRabbit