Skip to content

Comments

parser: Accept #-space-% to allow writing PEP8-compliant Python code#1446

Merged
wenzeslaus merged 1 commit intoOSGeo:releasebranch_7_8from
wenzeslaus:parser-only-pep8-comment
Mar 16, 2021
Merged

parser: Accept #-space-% to allow writing PEP8-compliant Python code#1446
wenzeslaus merged 1 commit intoOSGeo:releasebranch_7_8from
wenzeslaus:parser-only-pep8-comment

Conversation

@wenzeslaus
Copy link
Member

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 achive this support are included.

'#%' is still supported fully supported and remains in documentation.
The full switch to '# %' is left for v8.

Partial backport of 6352241 (#1287).

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 achive this support are included.

'#%' is still supported fully supported and remains in documentation.
The full switch to '# %' is left for v8.

Partial backport of 6352241 (OSGeo#1287).
Copy link
Member

@neteler neteler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with some G79 scripts, seems to work fine!

@wenzeslaus wenzeslaus merged commit b7caccb into OSGeo:releasebranch_7_8 Mar 16, 2021
@wenzeslaus wenzeslaus deleted the parser-only-pep8-comment branch March 16, 2021 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants