From ed1aea5e0534fadc279039716dd5d6ba1d187633 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dan=20Michael=20O=2E=20Hegg=C3=B8?= <danmichaelo@gmail.com>
Date: Fri, 2 May 2014 11:07:24 +0200
Subject: [PATCH] Fix W602 deprecated form of raising exception

---
 mwclient/http.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mwclient/http.py b/mwclient/http.py
index 15335d7..cb2b2a8 100644
--- a/mwclient/http.py
+++ b/mwclient/http.py
@@ -20,7 +20,7 @@ class CookieJar(dict):
             self.parse_cookie(cookie.strip())
         if response.getheader('set-cookie2', None):
             # ...
-            raise RuntimeError, 'Set-Cookie2', value
+            raise RuntimeError('Set-Cookie2', value)
 
     def parse_cookie(self, cookie):
         if not cookie:
-- 
GitLab