This is an automated email from the ASF dual-hosted git repository.

kszucs pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 0419c26  ARROW-10284: [Python] Correctly suppress warning about legacy 
filesystem on import
0419c26 is described below

commit 0419c26052ca6f6aaf7d3c9ce430e1c818f0aa27
Author: Joris Van den Bossche <[email protected]>
AuthorDate: Mon Oct 12 19:55:05 2020 +0200

    ARROW-10284: [Python] Correctly suppress warning about legacy filesystem on 
import
    
    Closes #8440 from jorisvandenbossche/ARROW-10284
    
    Authored-by: Joris Van den Bossche <[email protected]>
    Signed-off-by: Krisztián Szűcs <[email protected]>
---
 python/pyarrow/filesystem.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/python/pyarrow/filesystem.py b/python/pyarrow/filesystem.py
index 0831adb..c634984 100644
--- a/python/pyarrow/filesystem.py
+++ b/python/pyarrow/filesystem.py
@@ -252,6 +252,7 @@ class LocalFileSystem(FileSystem):
     def _get_instance(cls):
         if cls._instance is None:
             with warnings.catch_warnings():
+                warnings.simplefilter("ignore")
                 cls._instance = LocalFileSystem()
         return cls._instance
 

Reply via email to