URL: https://github.com/freeipa/freeipa/pull/1186
Author: stlaz
 Title: #1186: lint: disable no-name-in-module for py3 package
Action: opened

PR body:
"""
pylint mistakenly reports no-name-in-module when we're deciding
whether to use the package for the given python version.
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1186/head:pr1186
git checkout pr1186
From 9816442fdf0ae327a14cace14772eeb61e8d7fa0 Mon Sep 17 00:00:00 2001
From: Stanislav Laznicka <slazn...@redhat.com>
Date: Fri, 20 Oct 2017 15:37:35 +0200
Subject: [PATCH] lint: disable no-name-in-module for py3 package

pylint mistakenly reports no-name-in-module when we're deciding
whether to use the package for the given python version.
---
 ipalib/rpc.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ipalib/rpc.py b/ipalib/rpc.py
index 0c2f981765..5c1bec365f 100644
--- a/ipalib/rpc.py
+++ b/ipalib/rpc.py
@@ -82,12 +82,12 @@
     from xmlrpc.client import (Binary, Fault, DateTime, dumps, loads, ServerProxy,
             Transport, ProtocolError, MININT, MAXINT)
 
-# pylint: disable=import-error
+# pylint: disable=import-error, no-name-in-module
 if six.PY3:
     from http.client import RemoteDisconnected
 else:
     from httplib import BadStatusLine as RemoteDisconnected
-# pylint: enable=import-error
+# pylint: enable=import-error, no-name-in-module
 
 
 if six.PY3:
_______________________________________________
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