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:
Rafael Guterres Jeffman
2019-09-23 18:30:22 -03:00
committed by Christian Heimes
parent 51e0f56487
commit d4fab33605
3 changed files with 4 additions and 2 deletions

View File

@@ -22,7 +22,7 @@
# Make sure we only run this module at the server where samba4-python
# package is installed to avoid issues with unavailable modules
from __future__ import absolute_import
from __future__ import absolute_import, unicode_literals
import logging
import re

View File

@@ -2,7 +2,7 @@
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
from __future__ import absolute_import, unicode_literals
import logging

View File

@@ -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