diff sat/memory/memory.py @ 2698:5060cbeec01e

core: minor style/typos fixes
author Goffi <goffi@goffi.org>
date Sat, 01 Dec 2018 10:04:17 +0100
parents 56f94936df1e
children 378188abe941
line wrap: on
line diff
--- a/sat/memory/memory.py	Sat Dec 01 09:59:48 2018 +0100
+++ b/sat/memory/memory.py	Sat Dec 01 10:04:17 2018 +0100
@@ -630,28 +630,13 @@
     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 @@
             - 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]
         """