Staging
v0.8.1
https://github.com/python/cpython
Revision 3b18b17efcee6f968cf85c543254b3611311e9f4 authored by Miss Islington (bot) on 13 December 2019, 16:21:54 UTC, committed by Pablo Galindo on 13 December 2019, 16:21:54 UTC
When parsing an "elif" node, lineno and col_offset of the node now point to the "elif" keyword and not to its condition, making it consistent with the "if" node.

https://bugs.python.org/issue39031

Automerge-Triggered-By: @pablogsal
(cherry picked from commit 025a602af7ee284d8db6955c26016f3f27d35536)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
1 parent b738237
History
Tip revision: 3b18b17efcee6f968cf85c543254b3611311e9f4 authored by Miss Islington (bot) on 13 December 2019, 16:21:54 UTC
bpo-39031: Include elif keyword when producing lineno/col-offset info for if_stmt (GH-17582) (GH-17589)
Tip revision: 3b18b17
File Mode Size
c-api
data
distributing
distutils
extending
faq
howto
includes
install
installing
library
reference
tools
tutorial
using
whatsnew
Makefile -rw-r--r-- 8.5 KB
README.rst -rw-r--r-- 4.6 KB
about.rst -rw-r--r-- 1.5 KB
bugs.rst -rw-r--r-- 4.7 KB
conf.py -rw-r--r-- 6.7 KB
contents.rst -rw-r--r-- 538 bytes
copyright.rst -rw-r--r-- 451 bytes
glossary.rst -rw-r--r-- 52.1 KB
license.rst -rw-r--r-- 45.2 KB
make.bat -rw-r--r-- 5.5 KB

README.rst

back to top