mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Removes several pylint warnings.
This patche removes 93 pylint deprecation warnings due to invalid escape sequences (mostly 'invalid escape sequence \d') on unicode strings. Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
committed by
Christian Heimes
parent
bc53544c6f
commit
c898be1df9
@@ -554,7 +554,7 @@ class host(LDAPObject):
|
||||
),
|
||||
Str('macaddress*',
|
||||
normalizer=lambda value: value.upper(),
|
||||
pattern='^([a-fA-F0-9]{2}[:|\-]?){5}[a-fA-F0-9]{2}$',
|
||||
pattern=r'^([a-fA-F0-9]{2}[:|\-]?){5}[a-fA-F0-9]{2}$',
|
||||
pattern_errmsg=('Must be of the form HH:HH:HH:HH:HH:HH, where '
|
||||
'each H is a hexadecimal character.'),
|
||||
label=_('MAC address'),
|
||||
|
||||
Reference in New Issue
Block a user