Skip to content

Commit d204e66

Browse files
author
Gauvain Pocentek
committed
Enable deprecation warnings for gitlab only
Fixes #96
1 parent f12c732 commit d204e66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitlab/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
__license__ = 'LGPL3'
3939
__copyright__ = 'Copyright 2013-2016 Gauvain Pocentek'
4040

41-
warnings.simplefilter('always', DeprecationWarning)
41+
warnings.filterwarnings('default', category=DeprecationWarning,
42+
module='^gitlab')
4243

4344

4445
def _sanitize(value):

0 commit comments

Comments
 (0)