Skip to content

Commit

Permalink
Use raw strings for Python 3 compatibility in old API client code
Browse files Browse the repository at this point in the history
Python 3 enforces checks on \ sequences in strings. Instead of copying
over the new mix of normal and raw strings from the server side, turn
those strings in the remote plugins to raw mode.

Fixes: https://pagure.io/freeipa/issue/9565

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
  • Loading branch information
abbra authored and rcritten committed Apr 3, 2024
1 parent 5d3c6b7 commit ca6604b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ipaclient/remote_plugins/2_164/automember.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
if six.PY3:
unicode = str

__doc__ = _("""
__doc__ = _(r"""
Auto Membership Rule.
Bring clarity to the membership of hosts and users by configuring inclusive
Expand Down
2 changes: 1 addition & 1 deletion ipaclient/remote_plugins/2_164/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
if six.PY3:
unicode = str

__doc__ = _("""
__doc__ = _(r"""
Groups of users
Manage groups of users. By default, new groups are POSIX groups. You
Expand Down
2 changes: 1 addition & 1 deletion ipaclient/remote_plugins/2_164/hbactest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
if six.PY3:
unicode = str

__doc__ = _("""
__doc__ = _(r"""
Simulate use of Host-based access controls
HBAC rules control who can access what services on what hosts.
Expand Down
2 changes: 1 addition & 1 deletion ipaclient/remote_plugins/2_164/trust.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
if six.PY3:
unicode = str

__doc__ = _("""
__doc__ = _(r"""
Cross-realm trusts
Manage trust relationship between IPA and Active Directory domains.
Expand Down
2 changes: 1 addition & 1 deletion ipaclient/remote_plugins/2_49/automember.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
if six.PY3:
unicode = str

__doc__ = _("""
__doc__ = _(r"""
Auto Membership Rule.
Bring clarity to the membership of hosts and users by configuring inclusive
Expand Down
2 changes: 1 addition & 1 deletion ipaclient/remote_plugins/2_49/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
if six.PY3:
unicode = str

__doc__ = _("""
__doc__ = _(r"""
Groups of users
Manage groups of users. By default, new groups are POSIX groups. You
Expand Down
2 changes: 1 addition & 1 deletion ipaclient/remote_plugins/2_49/trust.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
if six.PY3:
unicode = str

__doc__ = _("""
__doc__ = _(r"""
Cross-realm trusts
Manage trust relationship between IPA and Active Directory domains.
Expand Down

0 comments on commit ca6604b

Please sign in to comment.