Skip to content

Commit b74e001

Browse files
author
hackermd
committed
Add deprecation warning for Python 2
1 parent 26af3b8 commit b74e001

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/dicomweb_client/api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@
55
import logging
66
import email
77
import six
8+
import warnings
89
from io import BytesIO
910
from collections import OrderedDict
11+
1012
if sys.version_info.major < 3:
13+
warnings.warn(
14+
'Python 2 support will be discontinued in dicomweb-client version 1.0',
15+
DeprecationWarning
16+
)
1117
from urllib import quote_plus
1218
from urlparse import urlparse
1319
else:

0 commit comments

Comments
 (0)