From d57af34abbcf1727a453b2214971f12f51046168 Mon Sep 17 00:00:00 2001 From: Zsolt Dollenstein Date: Wed, 26 Nov 2025 14:46:58 +0000 Subject: [PATCH] Fix incorrect override --- linehaul/ua/impl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linehaul/ua/impl.py b/linehaul/ua/impl.py index 2af8c32..adb043f 100644 --- a/linehaul/ua/impl.py +++ b/linehaul/ua/impl.py @@ -77,9 +77,9 @@ def __init__(self, regexes, handler, *, name=None): def name(self): return self._name - def __call__(self, user_agent): + def __call__(self, ua): for regex in self._regexes: - matched = regex.search(user_agent) + matched = regex.search(ua) # If we've matched this particuar regex, then we'll break the loop here and # go onto finishing parsing.