Commit e355f911 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

testXHTML: py3.

parent b84cddc6
...@@ -165,14 +165,14 @@ class BusinessTemplateInfoDir(BusinessTemplateInfoBase): ...@@ -165,14 +165,14 @@ class BusinessTemplateInfoDir(BusinessTemplateInfoBase):
def findFileInfosByName(self, startswith='', endswith=''): def findFileInfosByName(self, startswith='', endswith=''):
allfiles = [] allfiles = []
def visit(arg, dirname, names): for root, dir_list, file_list in os.walk(self.target):
if '.svn' in dirname: # We can drop this block as we no longer use Subversion.
return if '.svn' in root.split(os.path.sep):
for i in names: continue
path = os.path.join(self.target, dirname, i) for file_ in file_list:
path = os.path.join(self.target, root, file_)
if os.path.isfile(path): if os.path.isfile(path):
allfiles.append(path) allfiles.append(path)
os.path.walk(self.target, visit, None)
for i in allfiles: for i in allfiles:
if i.startswith(startswith) and i.endswith(endswith): if i.startswith(startswith) and i.endswith(endswith):
yield i yield i
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment