From 2be975d42a7332a406fb50a852cd64ee6c443f20 Mon Sep 17 00:00:00 2001 From: Masaya Nakamura Date: Wed, 2 Aug 2017 18:15:50 +0900 Subject: [PATCH] [filesystem] Fix error on opening zip in Python 2 --- Lib/ufoLib/filesystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ufoLib/filesystem.py b/Lib/ufoLib/filesystem.py index 34e626929..ad6a2414e 100644 --- a/Lib/ufoLib/filesystem.py +++ b/Lib/ufoLib/filesystem.py @@ -75,7 +75,7 @@ class FileSystem(object): path = ZipFS( path, write=True if mode == 'w' else False, encoding="utf8") roots = [ - p for p in path.listdir("") + p for p in path.listdir(u"") # exclude macOS metadata contained in zip file if path.isdir(p) and p != "__MACOSX" ]