[GRASS-git] [OSGeo/grass] b7cacc: parser: Accept #-space-% to allow writing PEP8-com...
Vaclav Petras
noreply at github.com
Mon Mar 15 17:56:22 PDT 2021
Branch: refs/heads/releasebranch_7_8
Home: https://github.com/OSGeo/grass
Commit: b7caccbd12bc5665f363b73e9ff62687ccad86f4
https://github.com/OSGeo/grass/commit/b7caccbd12bc5665f363b73e9ff62687ccad86f4
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2021-03-15 (Mon, 15 Mar 2021)
Changed paths:
M general/g.parser/main.c
Log Message:
-----------
parser: Accept #-space-% to allow writing PEP8-compliant Python code (#1446)
Accept '# %' in parser script header definition because '#%' is against PEP8
(each line of a block comment starts with a # and a single space).
Only minimal changes to achieve this support are included.
'#%' is still supported fully supported and remains in documentation.
The full switch to '# %' is left for v8.
Partial backport of 635224115c5ee9c29a9356210c3b03e5511ef6dc (#1287).
More information about the grass-commit
mailing list