changeset fc9579b63df5 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=fc9579b63df5
description: remove useless import, coding standards

diffstat:

 src/common/pubsub.py |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (65 lines):

diff -r c9a551ad0bb4 -r fc9579b63df5 src/common/pubsub.py
--- a/src/common/pubsub.py      Sat Aug 28 00:25:07 2010 +0200
+++ b/src/common/pubsub.py      Sat Aug 28 00:30:23 2010 +0200
@@ -24,7 +24,6 @@
 import xmpp
 import gajim
 import connection_handlers
-import nec
 import ged
 from connection_handlers_events import PubsubReceivedEvent
 from connection_handlers_events import PubsubBookmarksReceivedEvent
@@ -33,7 +32,7 @@
 
 class ConnectionPubSub:
     def __init__(self):
-        self.__callbacks={}
+        self.__callbacks = {}
         gajim.nec.register_incoming_event(PubsubBookmarksReceivedEvent)
         gajim.ged.register_event_handler('pubsub-bookmarks-received',
             ged.CORE, self._nec_pubsub_bookmarks_received)
@@ -47,7 +46,7 @@
 
         id_ = self.connection.send(query)
 
-        self.__callbacks[id_]=(cb, args, kwargs)
+        self.__callbacks[id_] = (cb, args, kwargs)
 
     def send_pb_subscribe(self, jid, node, cb, *args, **kwargs):
         if not self.connection or self.connected < 2:
@@ -59,7 +58,7 @@
 
         id_ = self.connection.send(query)
 
-        self.__callbacks[id_]=(cb, args, kwargs)
+        self.__callbacks[id_] = (cb, args, kwargs)
 
     def send_pb_unsubscribe(self, jid, node, cb, *args, **kwargs):
         if not self.connection or self.connected < 2:
@@ -71,7 +70,7 @@
 
         id_ = self.connection.send(query)
 
-        self.__callbacks[id_]=(cb, args, kwargs)
+        self.__callbacks[id_] = (cb, args, kwargs)
 
     def send_pb_publish(self, jid, node, item, id_, options=None):
         """
@@ -101,7 +100,7 @@
         id_ = self.connection.send(query)
 
         if cb:
-            self.__callbacks[id_]=(cb, args, kwargs)
+            self.__callbacks[id_] = (cb, args, kwargs)
 
     def send_pb_retract(self, jid, node, id_):
         """
@@ -148,7 +147,7 @@
         self.connection.SendAndCallForResponse(query, response, {'jid': jid,
             'node': node})
 
-    def send_pb_create(self, jid, node, configure = False, configure_form = 
None):
+    def send_pb_create(self, jid, node, configure=False, configure_form=None):
         """
         Create a new node
         """
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to