Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed issue with older version of python

  • Loading branch information...
commit 106e19aada2ac2747ba6bb44b22fc479bc7e17de 1 parent 6920077
@davglass davglass authored
Showing with 10 additions and 6 deletions.
  1. +5 −3 bin/yuidoc_highlight.py
  2. +5 −3 bin/yuidoc_parse.py
View
8 bin/yuidoc_highlight.py
@@ -70,8 +70,10 @@ def highlightDir(path):
fullname = os.path.join(path, i)
if os.path.isdir(fullname):
subdirs.append(fullname)
- elif i.lower().endswith(self.ext_check):
- highlightFile(path, i)
+ else:
+ for ext in self.ext_check:
+ if i.lower().endswith(ext):
+ highlightFile(path, i)
for i in subdirs:
highlightDir(i)
@@ -81,7 +83,7 @@ def highlightDir(path):
_mkdir(self.outputdir)
self.ext = ext
self.currentExt = ''
- self.ext_check = tuple(ext.split(','))
+ self.ext_check = ext.split(',')
self.newext = newext
log.info("-------------------------------------------------------")
View
8 bin/yuidoc_parse.py
@@ -64,8 +64,10 @@ def parseDir(path):
fullname = os.path.join(path, i)
if os.path.isdir(fullname):
subdirs.append(fullname)
- elif i.lower().endswith(self.extension_check):
- dircontent += parseFile(path, i)
+ else:
+ for ext in self.extension_check:
+ if i.lower().endswith(ext):
+ dircontent += parseFile(path, i)
for i in subdirs:
dircontent += parseDir(i)
@@ -108,7 +110,7 @@ def parseDir(path):
self.outputdir = os.path.abspath(outputdir)
_mkdir(self.outputdir)
self.extension = extension
- self.extension_check = tuple(extension.split(','))
+ self.extension_check = extension.split(',')
self.script=""
self.subModName = False
Please sign in to comment.
Something went wrong with that request. Please try again.