mirror of https://github.com/python/cpython
Add a warning to the posixfile module stating that it will go away.
This commit is contained in:
parent
bc006af3d0
commit
9242a4af17
|
@ -53,6 +53,13 @@ f.lock(mode [, len [, start [, whence]]])
|
||||||
query only
|
query only
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import warnings
|
||||||
|
warnings.warn(
|
||||||
|
"The posixfile module is obsolete and will disappear in the future",
|
||||||
|
DeprecationWarning)
|
||||||
|
del warnings
|
||||||
|
|
||||||
|
|
||||||
class _posixfile_:
|
class _posixfile_:
|
||||||
"""File wrapper class that provides extra POSIX file routines."""
|
"""File wrapper class that provides extra POSIX file routines."""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue