From 61c22fd77378a44a5c19a9492d48f5c5cd396540 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Tue, 22 Aug 2017 16:39:54 +0100 Subject: [PATCH] make FS URL with no protocol equivlenet to default opener --- fs/opener/registry.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/opener/registry.py b/fs/opener/registry.py index 32151b61..2641649c 100644 --- a/fs/opener/registry.py +++ b/fs/opener/registry.py @@ -123,6 +123,7 @@ def get_opener(self, protocol): successfully. """ + protocol = protocol or self.default_opener entry_point = next( pkg_resources.iter_entry_points('fs.opener', protocol), None