jorisvandenbossche commented on a change in pull request #8149:
URL: https://github.com/apache/arrow/pull/8149#discussion_r501026239
##########
File path: python/pyarrow/filesystem.py
##########
@@ -237,12 +238,28 @@ class LocalFileSystem(FileSystem):
_instance = None
+ def __init__(self):
+ warnings.warn(
+ "pyarrow.filesystem.LocalFileSystem is deprecated as of 2.0.0, "
+ "please use pyarrow.fs.LocalFileSystem instead",
+ DeprecationWarning, stacklevel=2)
Review comment:
There is a `_deprecate_class` in ``pyarrow.util``, but that serves a
different purpose (it aliases the old name to the new class, but with warning).
And if it is just a helper for raising the warning, I am not sure that is
worth it (compared to using a template message that can be filled in).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]