Fix syntax warning under Python 3.12/3.13

Strings like this one should be made raw.

Change-Id: Iaa5ca158c8b0a16e20020775da3cb4289778e2c0
This commit is contained in:
Thomas Goirand
2024-11-27 16:52:43 +01:00
parent 2730c9d43a
commit 5666bd0b61

View File

@@ -22,7 +22,7 @@ from oslo_serialization import jsonutils as json
from blazarclient import exception
from blazarclient.i18n import _
ELAPSED_TIME_REGEX = '^(\d+)([s|m|h|d])$' # noqa W605
ELAPSED_TIME_REGEX = r'^(\d+)([s|m|h|d])$'
LEASE_DATE_FORMAT = '%Y-%m-%dT%H:%M:%S.%f'
API_DATE_FORMAT = '%Y-%m-%d %H:%M'