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:
@@ -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'
|
||||
|
Reference in New Issue
Block a user