diff options
author | Adam Tauber <asciimoo@gmail.com> | 2014-03-04 19:26:09 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2014-03-04 19:26:09 +0100 |
commit | 693415c78707a2bb01bc952bd977292cc67a7f26 (patch) | |
tree | 81ab712287d810261fb354ffb7503873e504149f /searx/utils.py | |
parent | c2951e16a5c74358af0defb67e82510f8ec26aca (diff) | |
download | searxng-693415c78707a2bb01bc952bd977292cc67a7f26.tar.gz searxng-693415c78707a2bb01bc952bd977292cc67a7f26.zip |
[fix] pep8
Diffstat (limited to 'searx/utils.py')
-rw-r--r-- | searx/utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/utils.py b/searx/utils.py index b99a945df..1e48e37ee 100644 --- a/searx/utils.py +++ b/searx/utils.py @@ -10,6 +10,7 @@ ua_versions = ('26.0', '27.0', '28.0') ua_os = ('Windows NT 6.3; WOW64', 'X11; Linux x86_64; rv:26.0') ua = "Mozilla/5.0 ({os}) Gecko/20100101 Firefox/{version}" + def gen_useragent(): # TODO return ua.format(os=choice(ua_os), version=choice(ua_versions)) |