PEP8 clean

This commit is contained in:
nemunaire 2014-11-09 14:11:54 +01:00
commit e17996d858
23 changed files with 496 additions and 331 deletions

View file

@ -19,6 +19,7 @@
from datetime import datetime, timezone
import imp
class AbstractMessage:
"""This class represents an abstract message"""
@ -37,10 +38,12 @@ class AbstractMessage:
self.server = server
self.date = datetime.now(timezone.utc) if date is None else date
self.to = to if to is not None else list()
self._to_response = to_response if to_response is None or isinstance(to_response, list) else [ to_response ]
self.frm = frm # None allowed when it designate this bot
self._to_response = (to_response if (to_response is None or
isinstance(to_response, list))
else [ to_response ])
self.frm = frm # None allowed when it designate this bot
self.frm_owner = False # Filled later, in consumer
self.frm_owner = False # Filled later, in consumer
@property
@ -129,7 +132,6 @@ class DirectAsk(TextMessage):
self.designated = designated
def respond(self, message):
return DirectAsk(self.frm,
message,