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 /utils/standalone_searx.py | |
parent | 272158944bf13503e2597018fc60a00baddec660 (diff) | |
download | searxng-1022228d950c2a809ed613df1a515d9a6cafda7c.tar.gz searxng-1022228d950c2a809ed613df1a515d9a6cafda7c.zip |
Drop Python 2 (1/n): remove unicode string and url_utils
Diffstat (limited to 'utils/standalone_searx.py')
-rwxr-xr-x | utils/standalone_searx.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/standalone_searx.py b/utils/standalone_searx.py index 7bc1d32ed..d43b474d7 100755 --- a/utils/standalone_searx.py +++ b/utils/standalone_searx.py @@ -56,7 +56,7 @@ args = parser.parse_args() # search results for the query form = { "q":args.query, - "categories":args.category.decode('utf-8'), + "categories":args.category.decode(), "pageno":str(args.pageno), "language":args.lang, "time_range":args.timerange @@ -101,4 +101,3 @@ result_container_json = { } sys.stdout = codecs.getwriter("UTF-8")(sys.stdout) sys.stdout.write(dumps(result_container_json, sort_keys=True, indent=4, ensure_ascii=False, encoding="utf-8", default=json_serial)) - |