jorisvandenbossche commented on a change in pull request #8149:
URL: https://github.com/apache/arrow/pull/8149#discussion_r501034872
##########
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:
Moved a template to `pyarrow.util`. Can also make it a function raising
the warning if you prefer
----------------------------------------------------------------
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]