Skip to content

Commit

Permalink
Fix python syntax warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yfyf committed Dec 6, 2024
1 parent 685348a commit d47884b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kiosk/kiosk_browser/browser_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _view(self, status):

def user_agent_with_system(user_agent, system_name, system_version):
"""Inject a specific system into a user agent string"""
pattern = re.compile('(Mozilla/5.0) \(([^\)]*)\)(.*)')
pattern = re.compile(r'(Mozilla/5.0) \(([^\)]*)\)(.*)')
m = pattern.match(user_agent)

if m == None:
Expand Down

0 comments on commit d47884b

Please sign in to comment.