From 0e9b223eec0c8a557aedb9414a3265f94eb615a1 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Mon, 12 Oct 2020 14:55:41 +0200 Subject: [PATCH] ARROW-10284: [Python] Correctly suppress warning about legacy filesystem on import --- python/pyarrow/filesystem.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/pyarrow/filesystem.py b/python/pyarrow/filesystem.py index 0831adbd3e7c..c634984a70b6 100644 --- a/python/pyarrow/filesystem.py +++ b/python/pyarrow/filesystem.py @@ -252,6 +252,7 @@ def __init__(self): def _get_instance(cls): if cls._instance is None: with warnings.catch_warnings(): + warnings.simplefilter("ignore") cls._instance = LocalFileSystem() return cls._instance