URL: https://github.com/freeipa/freeipa/pull/1420
Author: tiran
 Title: #1420: Fix python-ldap byte warnings
Action: opened

PR body:
"""
Signed-off-by: Christian Heimes <chei...@redhat.com>
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1420/head:pr1420
git checkout pr1420
From 1a0835c4e830fded26401bf6fc913314ff90059f Mon Sep 17 00:00:00 2001
From: Christian Heimes <chei...@redhat.com>
Date: Thu, 21 Dec 2017 10:31:35 +0100
Subject: [PATCH] Fix python-ldap byte warnings

Signed-off-by: Christian Heimes <chei...@redhat.com>
---
 ipapython/ipaldap.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py
index 44210a1d30..ab2838c317 100644
--- a/ipapython/ipaldap.py
+++ b/ipapython/ipaldap.py
@@ -80,7 +80,7 @@
 if six.PY2 and hasattr(ldap, 'LDAPBytesWarning'):
     # XXX silence python-ldap's BytesWarnings
     warnings.filterwarnings(
-        action="ignore",
+        action="always",
         category=ldap.LDAPBytesWarning,  # pylint: disable=no-member
     )
 
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org

Reply via email to