/pidgin/main: ae398bcf92b9: Make irc work with Python3

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


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

Description:

Make irc work with Python3
(grafted from 2f8eb8108b6381014bd90b6245181840c519f19b)

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