https://github.com/python/cpython
Revision 848037c1476ddf86dd2798fca35527a63c764a8a authored by ngie-eign on 03 March 2019, 07:28:26 UTC, committed by Inada Naoki on 03 March 2019, 07:28:26 UTC
The previous code hardcoded `SEEK_SET`, etc. While it's very unlikely
that these values will change, it's best to use the definitions to avoid
there being mismatches in behavior with the code in the future.

Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
1 parent 8589f14
History
Tip revision: 848037c1476ddf86dd2798fca35527a63c764a8a authored by ngie-eign on 03 March 2019, 07:28:26 UTC
Use names SEEK_SET, etc instead of magic number (GH-12057)
Tip revision: 848037c
File Mode Size
test
__init__.py -rw-r--r-- 3.1 KB
__main__.py -rw-r--r-- 472 bytes
case.py -rw-r--r-- 57.1 KB
loader.py -rw-r--r-- 22.2 KB
main.py -rw-r--r-- 11.0 KB
mock.py -rw-r--r-- 80.5 KB
result.py -rw-r--r-- 7.3 KB
runner.py -rw-r--r-- 7.6 KB
signals.py -rw-r--r-- 2.3 KB
suite.py -rw-r--r-- 12.5 KB
util.py -rw-r--r-- 5.1 KB

back to top