Mercurial > gnulib
changeset 38836:42df2563bf2b
gnulib-tool.py: Remove unused function nlcount.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 09 Sep 2017 12:27:40 +0200 |
parents | a49716228960 |
children | c3fece354ba9 |
files | pygnulib/constants.py |
diffstat | 1 files changed, 0 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/pygnulib/constants.py Sat Sep 09 12:01:28 2017 +0200 +++ b/pygnulib/constants.py Sat Sep 09 12:27:40 2017 +0200 @@ -437,20 +437,4 @@ return(text) -def nlcount(text): - '''Return count of newlines before and after text.''' - counter = int() - before = int() - after = int() - text = text.replace('\r\n', '\n') - while text[counter] == '\n': - before += 1 - counter += 1 - counter = len(text) - 1 - while text[counter] == '\n': - after += 1 - counter -= 1 - print(before, after) - - __all__ += ['APP', 'DIRS', 'MODES', 'UTILS']