>From d568af9587276169ae1f4f3ce253cbc25cb8fc9a Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 9 Sep 2017 12:27:40 +0200 Subject: [PATCH 2/6] gnulib-tool.py: Remove unused function nlcount. --- pygnulib/constants.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/pygnulib/constants.py b/pygnulib/constants.py index 9428e1f..61d86a2 100644 --- a/pygnulib/constants.py +++ b/pygnulib/constants.py @@ -437,20 +437,4 @@ def nlremove(text): 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'] -- 2.7.4