core: minor style/typos fixes

This commit is contained in:
Goffi 2018-12-01 10:04:17 +01:00
commit a29893ac1f

View file

@ -630,28 +630,13 @@ class Memory(object):
def addToHistory(self, client, data):
return self.storage.addToHistory(data, client.profile)
def _historyGet(
self,
from_jid_s,
to_jid_s,
limit=C.HISTORY_LIMIT_NONE,
between=True,
filters=None,
profile=C.PROF_KEY_NONE,
):
return self.historyGet(
jid.JID(from_jid_s), jid.JID(to_jid_s), limit, between, filters, profile
)
def _historyGet(self, from_jid_s, to_jid_s, limit=C.HISTORY_LIMIT_NONE, between=True,
filters=None, profile=C.PROF_KEY_NONE):
return self.historyGet(jid.JID(from_jid_s), jid.JID(to_jid_s), limit, between,
filters, profile)
def historyGet(
self,
from_jid,
to_jid,
limit=C.HISTORY_LIMIT_NONE,
between=True,
filters=None,
profile=C.PROF_KEY_NONE,
):
def historyGet(self, from_jid, to_jid, limit=C.HISTORY_LIMIT_NONE, between=True,
filters=None, profile=C.PROF_KEY_NONE):
"""Retrieve messages in history
@param from_jid (JID): source JID (full, or bare for catchall)
@ -661,7 +646,8 @@ class Memory(object):
- C.HISTORY_LIMIT_NONE or None for unlimited
- C.HISTORY_LIMIT_DEFAULT to use the HISTORY_LIMIT parameter value
@param between (bool): confound source and dest (ignore the direction)
@param filters (str): pattern to filter the history results (see bridge API for details)
@param filters (dict[unicode, unicode]): pattern to filter the history results
(see bridge API for details)
@param profile (str): %(doc_profile)s
@return (D(list)): list of message data as in [messageNew]
"""