summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Firth <dan.firth@codethink.co.uk>2016-12-10 18:01:44 +0000
committerDaniel Firth <dan.firth@codethink.co.uk>2016-12-10 18:01:44 +0000
commit6177f3bc8c854be4abd40dc2373ea5c52b5bd401 (patch)
tree5ea1d92ac0cdeccb3aa425193e7987f17a92c480
parent0bd3046de3d4d90096f5e69aa20f0369cb44a105 (diff)
downloadybd-lc/extensionsdebug.tar.gz
Try without str()lc/extensionsdebug
-rw-r--r--ybd/utils.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/ybd/utils.py b/ybd/utils.py
index e6fd5a6..89648c8 100644
--- a/ybd/utils.py
+++ b/ybd/utils.py
@@ -375,12 +375,10 @@ def _find_extensions(paths):
map(lambda x: efs.add_fs(x, OSFS(x)), paths)
def get_extensions(kind):
- return {str(os.path.splitext(x)[0][1:]): str(efs.getsyspath(x))
+ return {os.path.splitext(x)[0][1:]: efs.getsyspath(x)
for x in efs.walk.files(filter=['*.%s' % kind])}
- a = {e: get_extensions(e) for e in extension_kinds}
- print 'Extensions found: %s' % a
- return a
+ return {e: get_extensions(e) for e in extension_kinds}
def find_extensions():