Alphebetize bot names in apachelog/resolve.py.
authorW. Trevor King <wking@drexel.edu>
Thu, 23 Feb 2012 12:49:31 +0000 (07:49 -0500)
committerW. Trevor King <wking@drexel.edu>
Thu, 23 Feb 2012 12:49:31 +0000 (07:49 -0500)
Also mention "bingbot" as an alias for "msnbot".

apachelog/resolve.py

index 88843b7f954d51ea0b50b5a643d7d881dbd5cbde..31451fa647b909a6bed9b0ef7bedee908b112123 100644 (file)
@@ -41,10 +41,10 @@ class Resolver (object):
         'feedburner': [_re.compile('.*rate-limited-proxy-.*.google.com.*')],
         }
     for bot in [
+        'baiduspider',
         'googlebot',
+        'msnbot',  # a.k.a: bingbot
         'yandex',
-        'baiduspider',
-        'msnbot',
         ]:
         REGEXPS[bot] = [_re.compile('.*{}.*'.format(bot))]