mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Add a warning to the posixfile module stating that it will go away.
This commit is contained in:
parent
bc006af3d0
commit
9242a4af17
1 changed files with 7 additions and 0 deletions
|
@ -53,6 +53,13 @@ f.lock(mode [, len [, start [, whence]]])
|
|||
query only
|
||||
"""
|
||||
|
||||
import warnings
|
||||
warnings.warn(
|
||||
"The posixfile module is obsolete and will disappear in the future",
|
||||
DeprecationWarning)
|
||||
del warnings
|
||||
|
||||
|
||||
class _posixfile_:
|
||||
"""File wrapper class that provides extra POSIX file routines."""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue