Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9242a4a

Browse files
committed
Add a warning to the posixfile module stating that it will go away.
1 parent bc006af commit 9242a4a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lib/posixfile.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@
5353
query only
5454
"""
5555

56+
import warnings
57+
warnings.warn(
58+
"The posixfile module is obsolete and will disappear in the future",
59+
DeprecationWarning)
60+
del warnings
61+
62+
5663
class _posixfile_:
5764
"""File wrapper class that provides extra POSIX file routines."""
5865

0 commit comments

Comments
 (0)