summaryrefslogtreecommitdiffstats
path: root/saslauthd
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2016-05-04 15:53:48 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-05-04 15:53:48 +0200
commitc204eaaa2c9a006432fe00489a352833143db01d (patch)
tree18860f2e335b9a98d34f404d5c4b81d22f2ce222 /saslauthd
parent4a24e0cc403321713ee1201ade9d36956da1c060 (diff)
downloadpykolab-c204eaaa2c9a006432fe00489a352833143db01d.tar.gz
CS fixes according to PEP8 (ignored mostly line-length errors only)
Summary: . Reviewers: #pykolab_developers Differential Revision: https://git.kolab.org/D134
Diffstat (limited to 'saslauthd')
-rw-r--r--saslauthd/__init__.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/saslauthd/__init__.py b/saslauthd/__init__.py
index c5d9cfa..2cb76d6 100644
--- a/saslauthd/__init__.py
+++ b/saslauthd/__init__.py
@@ -1,4 +1,4 @@
-# Copyright 2010-2013 Kolab Systems AG (http://www.kolabsys.com)
+# Copyright 2010-2016 Kolab Systems AG (http://www.kolabsys.com)
#
# Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen a kolabsys.com>
#
@@ -46,6 +46,7 @@ from pykolab.translate import _
log = pykolab.getLogger('saslauthd')
conf = pykolab.getConf()
+
class SASLAuthDaemon(object):
def __init__(self):
daemon_group = conf.add_cli_parser_option_group(_("Daemon Options"))
@@ -166,7 +167,8 @@ class SASLAuthDaemon(object):
except AttributeError, e:
exitcode = 1
traceback.print_exc()
- print >> sys.stderr, _("Traceback occurred, please report a bug at https://issues.kolab.org")
+ print >> sys.stderr, _("Traceback occurred, please report a " +
+ "bug at https://issues.kolab.org")
except TypeError, e:
exitcode = 1
traceback.print_exc()
@@ -174,7 +176,8 @@ class SASLAuthDaemon(object):
except:
exitcode = 2
traceback.print_exc()
- print >> sys.stderr, _("Traceback occurred, please report a bug at https://issues.kolab.org")
+ print >> sys.stderr, _("Traceback occurred, please report a " +
+ "bug at https://issues.kolab.org")
sys.exit(exitcode)
@@ -214,8 +217,8 @@ class SASLAuthDaemon(object):
bound = True
except Exception, errmsg:
log.error(
- _("kolab-saslauthd could not accept " + \
- "connections on socket: %r") % (errmsg)
+ _("kolab-saslauthd could not accept " +
+ "connections on socket: %r") % (errmsg)
)
if cur_tries >= max_tries:
@@ -288,7 +291,7 @@ class SASLAuthDaemon(object):
def write_pid(self):
pid = os.getpid()
- fp = open(conf.pidfile,'w')
+ fp = open(conf.pidfile, 'w')
fp.write("%d\n" % (pid))
fp.close()
@@ -358,7 +361,6 @@ class SASLAuthDaemon(object):
sys.exit(1)
-
# Set real and effective user if not the same as current.
if not user_uid == ruid:
log.debug(