Skip to content

Commit b73723e

Browse files
committed
Use warnings.warn for deprecation
1 parent 32da58a commit b73723e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arxiv/arxiv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Use `import arxiv`.
66
"""
7-
from .__init__ import * # noqa: F403
8-
import logging
7+
from .__init__ import * # noqa: F403
8+
import warnings
99

10-
logging.warning("**Deprecated** after 2.0.0; use `import arxiv` instead.")
10+
warnings.warn("**Deprecated** after 2.0.0; use `import arxiv` instead.")

0 commit comments

Comments
 (0)