Marcin Kasperski committed e31b896

A few comments.

Comments (0)

Files changed (5)


 def parse_seek_reply(reply_text):
+    """
+    Parse output of "seek" command
+    :param reply_text: actual FICS output
+    :type reply_text: str
+    :return: seek details (or None)
+    :rtype: SeekRef
+    :raise: errors.BadFicsCommandParameters
+    """
     for good_re in re_proper_seeks:
         m =
         if m:


 def parse_who_reply(text):
+    """
+    Parse reply of `who` command (listing of players present on the site)
+    :param text: text output of the command
+    :type text: str
+    """


     def good_tell(self, who):
         Given user said sth properly.
+        :param who: player whose tell was proper
         if who in self._bad_command_count:
             del self._bad_command_count[ who ]


         :param exc: actual exception
         :type exc: Exception
-        :param stage: processing stage on which error happened: 'parse' if failure
+        :param stage: processing stage on which error happened - 'parse' if failure
             happened during parsing (error is about wrong command, wrong params etc),
             'run' if during actual processing
         :type stage: str


 # -*- coding: utf-8 -*-
+Import best possible OrderedDict
     from collections import OrderedDict
 except ImportError:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.