"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Cheetah/Template.py" between
cheetah3-3.2.4.tar.gz and cheetah3-3.2.5.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).

Template.py  (cheetah3-3.2.4):Template.py  (cheetah3-3.2.5)
skipping to change at line 81 skipping to change at line 81
def checkFileMtime(value): def checkFileMtime(value):
globals()['__checkFileMtime'] = value globals()['__checkFileMtime'] = value
class Error(Exception): class Error(Exception):
pass pass
class PreprocessError(Error): class PreprocessError(Error):
pass pass
def hashList(l): def hashList(v_list):
hashedList = [] hashedList = []
for v in l: for v in v_list:
if isinstance(v, dict): if isinstance(v, dict):
v = hashDict(v) v = hashDict(v)
elif isinstance(v, list): elif isinstance(v, list):
v = hashList(v) v = hashList(v)
hashedList.append(v) hashedList.append(v)
return hash(tuple(hashedList)) return hash(tuple(hashedList))
def hashDict(d): def hashDict(d):
items = sorted(d.items()) items = sorted(d.items())
hashedList = [] hashedList = []
 End of changes. 2 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)