Make an internal function public, because it was used outside of the defining module.

This commit is contained in:
Dave Halter
2017-05-19 10:05:45 -04:00
parent c1010008af
commit 4bc5e27430
3 changed files with 5 additions and 5 deletions

View File

@@ -195,7 +195,7 @@ class Parser(BaseParser):
yield typ, value, start_pos, prefix
def _remove_last_newline(node):
def remove_last_newline(node):
endmarker = node.children[-1]
# The newline is either in the endmarker as a prefix or the previous
# leaf as a newline token.