[Python-modules-commits] r30536 - in packages/python-cobe/trunk/debian (3 files)

eriol-guest at users.alioth.debian.org eriol-guest at users.alioth.debian.org
Mon Sep 8 09:40:00 UTC 2014


    Date: Monday, September 8, 2014 @ 09:39:59
  Author: eriol-guest
Revision: 30536

* debian/patches/04_fix-irc-client.patch
  - Fix the irc-client function (Closes: #751469)
    Thanks to Guus Sliepen for report and patch

Added:
  packages/python-cobe/trunk/debian/patches/04_fix-irc-client.patch
Modified:
  packages/python-cobe/trunk/debian/changelog
  packages/python-cobe/trunk/debian/patches/series

Modified: packages/python-cobe/trunk/debian/changelog
===================================================================
--- packages/python-cobe/trunk/debian/changelog	2014-09-08 09:07:51 UTC (rev 30535)
+++ packages/python-cobe/trunk/debian/changelog	2014-09-08 09:39:59 UTC (rev 30536)
@@ -1,3 +1,11 @@
+python-cobe (2.1.0-2) UNRELEASED; urgency=medium
+
+  * debian/patches/04_fix-irc-client.patch
+    - Fix the irc-client function (Closes: #751469)
+      Thanks to Guus Sliepen for report and patch
+
+ -- Daniele Tricoli <eriol at mornie.org>  Mon, 08 Sep 2014 11:13:19 +0200
+
 python-cobe (2.1.0-1) unstable; urgency=low
 
   [ Jakub Wilk ]

Added: packages/python-cobe/trunk/debian/patches/04_fix-irc-client.patch
===================================================================
--- packages/python-cobe/trunk/debian/patches/04_fix-irc-client.patch	                        (rev 0)
+++ packages/python-cobe/trunk/debian/patches/04_fix-irc-client.patch	2014-09-08 09:39:59 UTC (rev 30536)
@@ -0,0 +1,40 @@
+Description: Fix the irc-client function.
+Author: Guus Sliepen <guus at debian.org>
+Last-Update: 2014-06-13
+
+--- a/cobe/irc.py
++++ b/cobe/irc.py
+@@ -63,9 +63,9 @@
+             self.connection.join(self.log_channel)
+ 
+     def on_pubmsg(self, conn, event):
+-        user = irc.client.NickMask(event.source()).nick
++        user = irc.client.NickMask(event.source).nick
+ 
+-        if event.target() == self.log_channel:
++        if event.target == self.log_channel:
+             # ignore input in the log channel
+             return
+ 
+@@ -74,10 +74,10 @@
+             return
+ 
+         # only respond on channels
+-        if not irc.client.is_channel(event.target()):
++        if not irc.client.is_channel(event.target):
+             return
+ 
+-        msg = event.arguments()[0]
++        msg = event.arguments[0]
+ 
+         # strip pasted nicks from messages
+         msg = re.sub("<\S+>\s+", "", msg)
+@@ -105,7 +105,7 @@
+ 
+         if to == self.nick:
+             reply = self.brain.reply(text).encode("utf-8")
+-            conn.privmsg(event.target(), "%s: %s" % (user, reply))
++            conn.privmsg(event.target, "%s: %s" % (user, reply))
+ 
+ 
+ class Runner:

Modified: packages/python-cobe/trunk/debian/patches/series
===================================================================
--- packages/python-cobe/trunk/debian/patches/series	2014-09-08 09:07:51 UTC (rev 30535)
+++ packages/python-cobe/trunk/debian/patches/series	2014-09-08 09:39:59 UTC (rev 30536)
@@ -1,3 +1,4 @@
 01_remove-argparse-from-install-requires.patch
 02_relaxed-versioned-dependencies.patch
 03_use_python-irc_instead_of_python-irclib.patch
+04_fix-irc-client.patch




More information about the Python-modules-commits mailing list