trivial: remove unnecessary pass statements

This commit is contained in:
Frédéric Péters 2014-10-06 14:49:13 +02:00
parent 0067a03783
commit abc45a8074
4 changed files with 1 additions and 4 deletions

View File

@ -38,7 +38,7 @@ class LibertyDirectory(qommon.liberty.LibertyDirectory):
try:
disco.initQuery()
except lasso.Error, error:
pass # XXX: there is no defined error code on lasso side
# there is no defined error code on lasso side :/
service = None
else:
disco.addRequestedServiceType(lasso.PP_HREF)

View File

@ -445,7 +445,6 @@ class QommonPublisher(Publisher):
if debug_cfg.get('logger', False):
self._app_logger = self.get_app_logger(force = True)
pass
else:
class NullLogger(object):
def error(*args): pass

View File

@ -266,7 +266,6 @@ class StorageSessionManager(QommonSessionManager):
session = self.session_class.get(session_id)
except KeyError:
session = None
pass
try:
self.session_class.remove_object(session_id)
except OSError:

View File

@ -326,7 +326,6 @@ class StorableObject(object):
except OSError, error:
if error.errno != 17: # 17 == Directory exists
raise
pass
if self.id is None:
self.id = self.get_new_id(create=True)
new_object = True