From 536d9a597ecad4a7a300ac92126b229d9ad834fb Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 3 Dec 2018 22:59:46 +0100 Subject: [PATCH] Minor language update --- lib/techniques/error/use.py | 2 +- lib/techniques/union/use.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/techniques/error/use.py b/lib/techniques/error/use.py index 08399cca4..773824250 100644 --- a/lib/techniques/error/use.py +++ b/lib/techniques/error/use.py @@ -332,7 +332,7 @@ def errorUse(expression, dump=False): stopLimit = int(count) infoMsg = "used SQL query returns " - infoMsg += "%d entries" % stopLimit + infoMsg += "%d %s" % (stopLimit, "entries" if stopLimit > 1 else "entry") logger.info(infoMsg) elif count and not count.isdigit(): diff --git a/lib/techniques/union/use.py b/lib/techniques/union/use.py index 795443b86..7e68fb2d0 100644 --- a/lib/techniques/union/use.py +++ b/lib/techniques/union/use.py @@ -258,7 +258,7 @@ def unionUse(expression, unpack=True, dump=False): stopLimit = int(count) infoMsg = "used SQL query returns " - infoMsg += "%d entries" % stopLimit + infoMsg += "%d %s" % (stopLimit, "entries" if stopLimit > 1 else "entry") logger.info(infoMsg) elif count and (not isinstance(count, basestring) or not count.isdigit()):