"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Cheetah/FileUtils.py" between
cheetah3-3.1.0.tar.gz and cheetah3-3.2.0.tar.gz

About: Cheetah3 is a template engine and code generation tool for e.g. for Web development or Java, SQL, LaTeX, form email ... (written in Python).

FileUtils.py  (cheetah3-3.1.0):FileUtils.py  (cheetah3-3.2.0)
skipping to change at line 99 skipping to change at line 99
for baseName in listdir(dir): for baseName in listdir(dir):
fullPath = join(dir, baseName) fullPath = join(dir, baseName)
if isdir(fullPath): if isdir(fullPath):
if filterDir(baseName, fullPath): if filterDir(baseName, fullPath):
addDir(fullPath) addDir(fullPath)
def filterDir(self, baseName, fullPath): def filterDir(self, baseName, fullPath):
"""A hook for filtering out certain dirs. """ """A hook for filtering out certain dirs. """
return not (baseName in self._ignoreBasenames or return not (baseName in self._ignoreBasenames
fullPath in self._ignoreDirs) or fullPath in self._ignoreDirs)
def processDir(self, dir, glob=glob): def processDir(self, dir, glob=glob):
extend = self._files.extend extend = self._files.extend
for pattern in self._globPatterns: for pattern in self._globPatterns:
extend(glob(os.path.join(dir, pattern))) extend(glob(os.path.join(dir, pattern)))
def files(self): def files(self):
return self._files return self._files
class _GenSubberFunc: class _GenSubberFunc:
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)