From 9479172b193ee708a8bd0e4b8eca331b8b16ad53 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dan=20Michael=20O=2E=20Hegg=C3=B8?= <danmichaelo@gmail.com>
Date: Sat, 18 Jul 2015 20:44:07 +0200
Subject: [PATCH] Make DeprecationWarnings visible

---
 mwclient/__init__.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/mwclient/__init__.py b/mwclient/__init__.py
index 3f85dc1..625b585 100644
--- a/mwclient/__init__.py
+++ b/mwclient/__init__.py
@@ -26,9 +26,13 @@
 from errors import *
 from client import Site, __ver__
 import ex
+import logging
+import warnings
+
+# Show DeprecationWarning
+warnings.simplefilter('always', DeprecationWarning)
 
 # Logging: Add a null handler to avoid "No handler found" warnings.
-import logging
 try:
     from logging import NullHandler
 except ImportError:
-- 
GitLab