[luci] ricci_communicator: remove futile code+trailing WS, pep8
by Jan Pokorný
commit 9d60a3612a6a1c3f70e8d5738b1c326670864a37
Author: Jan Pokorny <jpokorny(a)redhat.com>
Date: Wed Sep 12 17:27:44 2012 +0200
ricci_communicator: remove futile code+trailing WS, pep8
Signed-off-by: Jan Pokorny <jpokorny(a)redhat.com>
luci/lib/ricci_communicator.py | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/luci/lib/ricci_communicator.py b/luci/lib/ricci_communicator.py
index 1dd471a..9f8e00c 100644
--- a/luci/lib/ricci_communicator.py
+++ b/luci/lib/ricci_communicator.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2006-2011 Red Hat, Inc.
+# Copyright (C) 2006-2012 Red Hat, Inc.
#
# This program is free software; you can redistribute
# it and/or modify it under the terms of version 2 of the
@@ -17,13 +17,10 @@ from luci.lib.helpers import ugettext as _
import logging
log = logging.getLogger(__name__)
+
class RicciError(Exception):
- def __init__(self, args):
- super(RicciError, self).__init__(args)
- try:
- self.ss.settimeout(None)
- except:
- pass
+ pass
+
class RicciCommunicator:
def __init__(self, hostname, port=DEFAULT_RICCI_PORT):
@@ -115,7 +112,7 @@ class RicciCommunicator:
RICCI_CONNECT_FAILURES_MAX - connection_failures))
else:
break
-
+
# receive ricci header
try:
hello = self.__receive(self.__timeout_init)
11 years, 8 months