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
.azure-pipelines
.github
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
m4
.gitattributes -rw-r--r-- 1.8 KB
.gitignore -rw-r--r-- 1.5 KB
.travis.yml -rw-r--r-- 7.9 KB
CODE_OF_CONDUCT.md -rw-r--r-- 609 bytes
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 63.9 KB
README.rst -rw-r--r-- 9.8 KB
aclocal.m4 -rw-r--r-- 10.7 KB
config.guess -rwxr-xr-x 43.1 KB
config.sub -rwxr-xr-x 35.4 KB
configure -rwxr-xr-x 489.9 KB
configure.ac -rw-r--r-- 160.5 KB
install-sh -rwxr-xr-x 15.0 KB
pyconfig.h.in -rw-r--r-- 43.2 KB
setup.py -rw-r--r-- 99.2 KB

README.rst

back to top