diff options
| author | Dalf <alex@al-f.net> | 2020-08-06 17:42:46 +0200 |
|---|---|---|
| committer | Alexandre Flament <alex@al-f.net> | 2020-09-10 10:39:04 +0200 |
| commit | 1022228d950c2a809ed613df1a515d9a6cafda7c (patch) | |
| tree | d792dddea1a5b278b018ed4e024cd13340d5c1b1 /searx/answerers/statistics/answerer.py | |
| parent | 272158944bf13503e2597018fc60a00baddec660 (diff) | |
Drop Python 2 (1/n): remove unicode string and url_utils
Diffstat (limited to 'searx/answerers/statistics/answerer.py')
| -rw-r--r-- | searx/answerers/statistics/answerer.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/searx/answerers/statistics/answerer.py b/searx/answerers/statistics/answerer.py index 73dd25cfd..cfd1b3e23 100644 --- a/searx/answerers/statistics/answerer.py +++ b/searx/answerers/statistics/answerer.py @@ -1,11 +1,8 @@ -from sys import version_info from functools import reduce from operator import mul from flask_babel import gettext -if version_info[0] == 3: - unicode = str keywords = ('min', 'max', @@ -44,7 +41,7 @@ def answer(query): if answer is None: return [] - return [{'answer': unicode(answer)}] + return [{'answer': str(answer)}] # required answerer function |