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
pgen
Python.asdl -rw-r--r-- 5.3 KB
acceler.c -rw-r--r-- 3.3 KB
asdl.py -rw-r--r-- 12.6 KB
asdl_c.py -rw-r--r-- 43.3 KB
grammar1.c -rw-r--r-- 1.1 KB
listnode.c -rw-r--r-- 1.3 KB
myreadline.c -rw-r--r-- 10.6 KB
node.c -rw-r--r-- 5.1 KB
parser.c -rw-r--r-- 12.4 KB
parser.h -rw-r--r-- 1.3 KB
parsetok.c -rw-r--r-- 13.3 KB
token.c -rw-r--r-- 4.5 KB
tokenizer.c -rw-r--r-- 50.9 KB
tokenizer.h -rw-r--r-- 3.3 KB

back to top