Improve regex to pep8
This commit is contained in:
parent
ce56cbad2a
commit
48e7cdd9a4
@ -245,7 +245,12 @@ def site_dispatch(env, start_response):
|
||||
|
||||
class FilteredRequestLog:
|
||||
'''Don't log noisy thumbnail and avatar requests'''
|
||||
filter_re = re.compile(r'"GET /https://(i\.ytimg\.com/|www\.youtube\.com/data/subscription_thumbnails/|yt3\.ggpht\.com/|www\.youtube\.com/api/timedtext).*" 200')
|
||||
filter_re = re.compile(r"""(?x)^
|
||||
"GET /https://(i[.]ytimg[.]com/|
|
||||
www[.]youtube[.]com/data/subscription_thumbnails/|
|
||||
yt3[.]ggpht[.]com/|
|
||||
www[.]youtube[.]com/api/timedtext).*" 200
|
||||
""")
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user