diff --git a/templatehelper.py b/templatehelper.py index e62dfd7..a8a136b 100644 --- a/templatehelper.py +++ b/templatehelper.py @@ -82,7 +82,9 @@ def listdir(path): """ ignorelist = ['index', 'index.md', '*.scmsfasicon', '*.scmstarget'] if os.path.exists(os.path.join(pathprefix, path, '.scmsignore')): - with open(os.path.join(pathprefix, path, '.scmsignore'), encoding=locale.getencoding()) as scsmignore: + with open( + os.path.join(pathprefix, path, '.scmsignore'), + encoding=locale.getencoding()) as scsmignore: ignorelist.extend([line.strip('\n') for line in scsmignore.readlines()]) dirlist = [ os.path.basename(f) @@ -113,7 +115,9 @@ def listchildren(path): """ ignorelist = ['index', 'index.md', '*.scmsfasicon', '*.scmstarget'] if os.path.exists(os.path.join(pathprefix, path, '.scmsignore')): - with open(os.path.join(pathprefix, path, '.scmsignore'), encoding=locale.getencoding()) as scmsignore: + with open( + os.path.join(pathprefix, path, '.scmsignore'), + encoding=locale.getencoding()) as scmsignore: ignorelist.extend([line.strip('\n') for line in scmsignore.readlines()]) dirlist = [ [os.path.basename(f), os.path.basename(f)] @@ -121,7 +125,9 @@ def listchildren(path): if regex.match('^(?!\\.).*(?