Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
commit 03f159bc949e5609afd5312ac7ca9431c8451d1d Author: Peter Hatina phatina@redhat.com Date: Wed Jul 31 13:24:38 2013 +0200
pylint fixes
cli/lmi/shell/LMIConnection.py | 2 ++ cli/lmi/shell/LMIConsole.py | 2 +- cli/lmi/shell/LMIExceptions.py | 6 ------ cli/lmi/shell/LMIFormatter.py | 2 +- cli/lmi/shell/LMIMethod.py | 1 - 5 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/cli/lmi/shell/LMIConnection.py b/cli/lmi/shell/LMIConnection.py index f46fa32..31e4513 100644 --- a/cli/lmi/shell/LMIConnection.py +++ b/cli/lmi/shell/LMIConnection.py @@ -17,11 +17,13 @@ import os import sys import atexit import pywbem +import readline import urlparse
from LMIBaseClient import LMIBaseClient from LMIShellClient import LMIShellClient from LMINamespace import LMINamespaceRoot +from LMIInstance import LMIInstance from LMIReturnValue import LMIReturnValue from LMISubscription import LMISubscription
diff --git a/cli/lmi/shell/LMIConsole.py b/cli/lmi/shell/LMIConsole.py index 9176bf2..94f91fb 100644 --- a/cli/lmi/shell/LMIConsole.py +++ b/cli/lmi/shell/LMIConsole.py @@ -200,7 +200,7 @@ class LMIConsole(code.InteractiveConsole): return readline.read_history_file(self._history_file) if self._history_length > 0 and readline.get_current_history_length() > self._history_length: - readline.set_history_length(length) + readline.set_history_length(self._history_length) readline.write_history_file(self._history_file) readline.read_history_file(self._history_file)
diff --git a/cli/lmi/shell/LMIExceptions.py b/cli/lmi/shell/LMIExceptions.py index 30b22a3..2bd4bda 100644 --- a/cli/lmi/shell/LMIExceptions.py +++ b/cli/lmi/shell/LMIExceptions.py @@ -73,9 +73,3 @@ class LMIFilterError(Exception): """ Raised, when there is a filter error present """ - -class LMIHandlerNamePatternError(Exception): - """ - Raised when the pattern string does not contain minimum - replacable characters. - """ diff --git a/cli/lmi/shell/LMIFormatter.py b/cli/lmi/shell/LMIFormatter.py index e11f44f..5e139cc 100644 --- a/cli/lmi/shell/LMIFormatter.py +++ b/cli/lmi/shell/LMIFormatter.py @@ -113,7 +113,7 @@ class LMIFormatter(object): """ if "PAGER" in os.environ: pager = os.environ["PAGER"].split() - if os.path.exists(pager[0]) and os.access(pager[0], X_OK): + if os.path.exists(pager[0]) and os.access(pager[0], os.X_OK): return pager for p in ["less", "more"]: path = LMIFormatter.__which(p) diff --git a/cli/lmi/shell/LMIMethod.py b/cli/lmi/shell/LMIMethod.py index 28c3db6..98eff31 100644 --- a/cli/lmi/shell/LMIMethod.py +++ b/cli/lmi/shell/LMIMethod.py @@ -13,7 +13,6 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, see http://www.gnu.org/licenses/.
-import os import sys import time import pywbem
cura-tools-devel@lists.fedorahosted.org