This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def escape_html(s): | |
for i, v in ('&', '&'), ('<', '<'), ('"', '"'), ('>', '>'): | |
if i in s: | |
s = s.replace(i,v) | |
return s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
py 2.7 | |
assumptions: | |
- buze is currently running in a dir located outside of program files | |
- the dir is either formatted like: buze-x.x.x or buze-x.x.x-revision | |
[x]- read externally the name of latest version and revision. | |
[ ]- if version and revision equal current, offer to cease now. | |
[x]- get current buze path, go up level. |