diff --git a/mwclient/http.py b/mwclient/http.py index 15335d73f072aed3ad1453aacf1bfbfd2e41df1d..cb2b2a8433e781d30a1fbe17b69ece37a9669848 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: