changeset 2131:ea879bd7935d

Fix some names as pointed out by pylint.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Fri, 15 Jun 2007 23:59:57 +0200
parents 5e47b9a9df08
children d3a34ba5614a ea091b3eedc2
files jabberbot/xmlrpcbot.py jabberbot/xmppbot.py
diffstat 2 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/jabberbot/xmlrpcbot.py	Fri Jun 15 22:13:51 2007 +0200
+++ b/jabberbot/xmlrpcbot.py	Fri Jun 15 23:59:57 2007 +0200
@@ -227,8 +227,8 @@
         @type text: unicode
         
         """
-        c = cmd.NotificationCommand(jid, text)
-        self.commands.put_nowait(c)
+        command = cmd.NotificationCommand(jid, text)
+        self.commands.put_nowait(command)
         return True
     send_notification.export = True
     
@@ -239,8 +239,8 @@
         @type jid: str or unicode, 
         
         """  
-        c = cmd.AddJIDToRosterCommand(jid)
-        self.commands.put_nowait(c)
+        command = cmd.AddJIDToRosterCommand(jid)
+        self.commands.put_nowait(command)
         return True
     addJIDToRoster.export = True
     
@@ -251,7 +251,7 @@
         @type jid: str or unicode
         
         """
-        c = cmd.RemoveJIDFromRosterCommand(jid)
-        self.commands.put_nowait(c)
+        command = cmd.RemoveJIDFromRosterCommand(jid)
+        self.commands.put_nowait(command)
         return True
     removeJIDFromRoster.export = True
--- a/jabberbot/xmppbot.py	Fri Jun 15 22:13:51 2007 +0200
+++ b/jabberbot/xmppbot.py	Fri Jun 15 23:59:57 2007 +0200
@@ -206,8 +206,8 @@
         
         elif isinstance(command, cmd.GetPageList):
             msg = u"""That's the list of pages accesible to you:\n\n%s"""
-            list = "\n".join(command.data)
-            self.send_message(command.jid, msg % (list, ))
+            pagelist = "\n".join(command.data)
+            self.send_message(command.jid, msg % (pagelist, ))
             
         elif isinstance(command, cmd.GetPageInfo):
             msg = u"""Here's some more detailed information on page "%s":\n\n%s"""
@@ -333,8 +333,8 @@
             
         # This happens when user specifies wrong parameters
         except TypeError:
-            help = u"You've specified a wrong parameter list. The call should look like:\n\n%s %s"
-            return help % (command[0], command_class.parameter_list)
+            msg = u"You've specified a wrong parameter list. The call should look like:\n\n%s %s"
+            return msg % (command[0], command_class.parameter_list)
             
     def handle_unsubscribed_presence(self, stanza):
         """Handles unsubscribed presence stanzas"""
@@ -452,11 +452,11 @@
         It's sent in response to an uknown message or the "help" command.
         
         """
-        help = u"""Hello there! I'm a MoinMoin Notification Bot. Available commands:\n\n%s\n%s"""
+        msg = u"""Hello there! I'm a MoinMoin Notification Bot. Available commands:\n\n%s\n%s"""
         internal = ", ".join(self.internal_commands)
         xmlrpc = ", ".join(self.xmlrpc_commands.keys())
         
-        return help % (internal, xmlrpc)
+        return msg % (internal, xmlrpc)
     
     def log(self, message):
         """Logs a message and its timestamp"""