/pidgin/main: 2f8eb8108b63: Make irc work with Python3

Dani?l van Eeden hg at myname.nl
Wed Dec 23 23:30:28 EST 2015


Changeset: 2f8eb8108b6381014bd90b6245181840c519f19b
Author:	 Dani?l van Eeden <hg at myname.nl>
Date:	 2015-12-23 11:28 +0100
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/2f8eb8108b63

Description:

Make irc work with Python3

diffstat:

 libpurple/purple-url-handler |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/libpurple/purple-url-handler b/libpurple/purple-url-handler
--- a/libpurple/purple-url-handler
+++ b/libpurple/purple-url-handler
@@ -200,7 +200,7 @@ def irc(uri):
         for modifier in target.split(",")[1:]:
             modifiers[modifier] = True
 
-    isnick = modifiers.has_key("isnick")
+    isnick = True if "isnick" in modifiers else False
 
     paramstring = match.group(5)
     params = {}



More information about the Commits mailing list