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

Dani?l van Eeden <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 2f8eb8108b6381014bd90b6245181840c519f19b
Author:	 Dani?l van Eeden <[email protected]>
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 = {}

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.