changeset 2394:0f9b7b20fb9c

Whitespace fixes.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Sun, 15 Jul 2007 05:40:56 +0200
parents ae44e3266486
children 75817589c437 cf85b6916d17
files jabberbot/commands.py jabberbot/xmppbot.py
diffstat 2 files changed, 15 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/jabberbot/commands.py	Sun Jul 15 05:38:11 2007 +0200
+++ b/jabberbot/commands.py	Sun Jul 15 05:40:56 2007 +0200
@@ -14,11 +14,11 @@
     """Class representing a notification request"""
     def __init__(self, jids, text, subject="", async=True):
         """A constructor
-        
+
         @param jids: a list of jids to sent this message to
         @type jids: list
         @param async: async notifications get queued if contact is DnD
-        
+
         """
         if type(jids) != list:
             raise Exception("jids argument must be a list!")
@@ -94,12 +94,12 @@
     def __init__(self, jid, pagename):
         BaseDataCommand.__init__(self, jid)
         self.pagename = pagename
-        
+
 class Search(BaseDataCommand):
-    
+
     description = u"perform a wiki search"
     parameter_list = u"{title|text} term"
-    
+
     def __init__(self, jid, term, search_type):
         BaseDataCommand.__init__(self, jid)
         self.term = term
--- a/jabberbot/xmppbot.py	Sun Jul 15 05:38:11 2007 +0200
+++ b/jabberbot/xmppbot.py	Sun Jul 15 05:40:56 2007 +0200
@@ -45,7 +45,7 @@
 
         """
         self.resources[resource] = {'show': show, 'priority': priority}
-        
+
     def set_supports_forms(self, resource):
         if resource in self.resources:
             self.resources[resource]["forms"] = True
@@ -355,17 +355,17 @@
         else:
             # For unknown command return a generic help message
             return self.reply_help()
-        
+
     def do_search(self, jid, term, search_type):
         """Performs a Wiki search of term
-        
+
         @param jid: Jabber ID of user performing a search
         @type jid: pyxmpp.jid.JID
         @param term: term to search for
         @type term: unicode
         @param search_type: type of search; either "text" or "title"
         @type search_type: unicode
-        
+
         """
         search = cmd.Search(jid, term, search_type)
         self.from_commands.put_nowait(search)
@@ -383,7 +383,7 @@
 
         elif command == "ping":
             return u"""The "ping" command returns a "pong" message as soon as it's received."""
-        
+
         elif command == "searchform":
             return u"""searchform - perform a wiki search using a form"""
 
@@ -394,7 +394,7 @@
                 help_str = u"%s - %s\n\nUsage: %s %s"
                 return help_str % (command, classobj.description, command, classobj.parameter_list)
             else:
-                return u"""Unknown command "%s" """ % (command,)
+                return u"""Unknown command "%s" """ % (command, )
 
     def handle_xmlrpc_command(self, sender, command):
         """Creates a command object, and puts it the command queue
@@ -531,12 +531,12 @@
         query.new_query("http://jabber.org/protocol/disco#info")
         self.get_stream().set_response_handlers(query, self.handle_disco_result, None)
         self.get_stream().send(query)
-        
+
     def handle_disco_result(self, stanza):
         """Handler for <iq> service discovery results
-        
+
         Works with elements qualified by http://jabber.org/protocol/disco#info ns
-        
+
         @param stanza: a received result stanza
         """
         payload = stanza.get_query()
@@ -544,7 +544,7 @@
         if supports:
             jid = stanza.get_from_jid()
             self.contacts[jid.bare().as_utf8()].set_supports_forms(jid.resource)
-        
+
 
     def send_queued_messages(self, contact, ignore_dnd=False):
         """Sends messages queued for the contact