pitrou commented on a change in pull request #8149:
URL: https://github.com/apache/arrow/pull/8149#discussion_r500982607



##########
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:
       Put a helper in `pyarrow.util`? (and use `FutureWarning`?)




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to