Merge branch 'main' into avm99963-monorail
Merged commit 34d8229ae2b51fb1a15bd208e6fe6185c94f6266
GitOrigin-RevId: 7ee0917f93a577e475f8e09526dd144d245593f4
diff --git a/features/savedqueries_helpers.py b/features/savedqueries_helpers.py
index a6cb46f..b74cf73 100644
--- a/features/savedqueries_helpers.py
+++ b/features/savedqueries_helpers.py
@@ -1,7 +1,6 @@
-# Copyright 2016 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style
-# license that can be found in the LICENSE file or at
-# https://developers.google.com/open-source/licenses/bsd
+# Copyright 2016 The Chromium Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
"""Utility functions and classes for dealing with saved queries.
@@ -43,9 +42,11 @@
project_names_str = post_data.get(
'%ssavedquery_projects_%s' % (prefix, i), '')
- project_names = [pn.strip().lower()
- for pn in re.split('[],;\s]+', project_names_str)
- if pn.strip()]
+ project_names = [
+ pn.strip().lower()
+ for pn in re.split(r'[],;\s]+', project_names_str)
+ if pn.strip()
+ ]
project_ids = list(project_service.LookupProjectIDs(
cnxn, project_names).values())