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
__init__.py -rw-r--r-- 0 bytes
error.py -rw-r--r-- 2.6 KB
parse.py -rw-r--r-- 39.6 KB
request.py -rw-r--r-- 97.6 KB
response.py -rw-r--r-- 2.2 KB
robotparser.py -rw-r--r-- 9.1 KB

back to top