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
@@ -21,6 +21,8 @@ Test adding/removing external members (trusted domain objects) to IPA groups.
|
||||
These tests are skipped if trust is not established.
|
||||
"""
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import unittest
|
||||
|
||||
from ipalib import api
|
||||
@@ -41,7 +43,7 @@ def get_trusted_group_name():
|
||||
return None
|
||||
|
||||
ad_netbios = trusts['result'][0]['ipantflatname']
|
||||
return u'%s\Domain Admins' % ad_netbios
|
||||
return r'%s\Domain Admins' % ad_netbios
|
||||
|
||||
|
||||
@pytest.mark.tier1
|
||||
|
||||
Reference in New Issue
Block a user