From 03afd62d4abc07f2dd81ee4f61eded3e5f3034af Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Sun, 22 Nov 2015 14:18:33 +0100 Subject: [PATCH] Support starting with python 3.4 --- patacrep/content/song.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/patacrep/content/song.py b/patacrep/content/song.py index b2a47a6b..eaef5663 100755 --- a/patacrep/content/song.py +++ b/patacrep/content/song.py @@ -78,7 +78,9 @@ def parse(keyword, argument, contentlist, config): if not os.path.isdir(songdir.datadir): continue with files.chdir(songdir.datadir): - for filename in glob.iglob(os.path.join(songdir.subpath, elem), recursive=True): + # Starting with Python 3.5 glog can be recursive: **/*.csg for instance + # for filename in glob.iglob(os.path.join(songdir.subpath, elem), recursive=True): + for filename in glob.iglob(os.path.join(songdir.subpath, elem)): LOGGER.debug('Parsing file "{}"…'.format(filename)) extension = filename.split(".")[-1] if extension not in plugins: