From e73fdcf8baf5c18ce2c3de011268aea9c81c1e1b Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 29 Apr 2019 17:51:09 +0200 Subject: [PATCH] Import urllib submodules otpclient only imported the urllib parent package, not urllib.request and urllib.parse subpackages. This may or may not work depending on the import order of other plugins. Signed-off-by: Christian Heimes Reviewed-By: Alexander Bokovoy --- ipaclient/plugins/otptoken.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipaclient/plugins/otptoken.py b/ipaclient/plugins/otptoken.py index 0f3c6f865..92b8780f2 100644 --- a/ipaclient/plugins/otptoken.py +++ b/ipaclient/plugins/otptoken.py @@ -34,7 +34,8 @@ import qrcode import six from io import StringIO -import urllib +import urllib.parse +import urllib.request if six.PY3: unicode = str