Staging
v0.5.1
https://github.com/python/cpython
Revision aa1afc72c1ee1f090e6302198d9a0295f1ce1c05 authored by Miss Islington (bot) on 07 September 2017, 02:43:04 UTC, committed by ericvsmith on 07 September 2017, 02:43:04 UTC
For f-string ast nodes, fix the line and columns so that tools such as flake8 can identify them correctly.
(cherry picked from commit e7c566caf177afe43b57f0b2723e723d880368e8)
1 parent e00e1b8
Raw File
Tip revision: aa1afc72c1ee1f090e6302198d9a0295f1ce1c05 authored by Miss Islington (bot) on 07 September 2017, 02:43:04 UTC
bpo-30465: Fix lineno and col_offset in fstring AST nodes (GH-1800) (gh-3409)
Tip revision: aa1afc7
vgrindefs
# vgrind is a pretty-printer that takes source code and outputs
# eye-pleasing postscript.  The entry below should be added to your
# local vgrindefs file.  Contributed by Neale Pickett <neale@lanl.gov>.

python|Python|py:\
        :pb=^\d?(def|class)\d\p(\d|\\|\(|\:):\
        :cb=#:ce=$:sb=":se=\e":lb=':le=\e':\
        :kw=assert and break class continue def del elif else except\
         finally for from global if import in is lambda not or\
         pass print raise return try while yield:
back to top