amend for 3036ed1889: eliminate "invalid sequence" warnings

This commit is contained in:
sebres 2019-05-14 21:40:33 +02:00
parent 607e965e7b
commit 49bf6132cc

View file

@ -24,7 +24,7 @@ def is_googlebot(ip):
import re
host = DNSUtils.ipToName(ip)
if not host or not re.match('.*\.google(bot)?\.com$', host):
if not host or not re.match(r'.*\.google(bot)?\.com$', host):
return False
host_ips = DNSUtils.dnsToIp(host)
return (ip in host_ips)