"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Cheetah/CheetahWrapper.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).

CheetahWrapper.py  (cheetah3-3.2.4):CheetahWrapper.py  (cheetah3-3.2.5)
skipping to change at line 222 skipping to change at line 222
cheetah compile %s cheetah compile %s
Options are Options are
%s %s
Files are %s""", args, pprint.pformat(vars(opts)), files) Files are %s""", args, pprint.pformat(vars(opts)), files)
if opts.print_settings: if opts.print_settings:
print() print()
print('>> Available Cheetah compiler settings:') print('>> Available Cheetah compiler settings:')
from Cheetah.Compiler import _DEFAULT_COMPILER_SETTINGS from Cheetah.Compiler import _DEFAULT_COMPILER_SETTINGS
listing = _DEFAULT_COMPILER_SETTINGS listing = _DEFAULT_COMPILER_SETTINGS
listing.sort(key=lambda l: l[0][0].lower()) listing.sort(key=lambda _l: _l[0][0].lower())
for l in listing: for _l in listing:
print('\t%s (default: "%s")\t%s' % l) print('\t%s (default: "%s")\t%s' % _l)
sys.exit(0) sys.exit(0)
# cleanup trailing path separators # cleanup trailing path separators
seps = [sep for sep in [os.sep, os.altsep] if sep] seps = [sep for sep in [os.sep, os.altsep] if sep]
for attr in ['idir', 'odir']: for attr in ['idir', 'odir']:
for sep in seps: for sep in seps:
path = getattr(opts, attr, None) path = getattr(opts, attr, None)
if path and path.endswith(sep): if path and path.endswith(sep):
path = path[:-len(sep)] path = path[:-len(sep)]
setattr(opts, attr, path) setattr(opts, attr, path)
 End of changes. 2 change blocks. 
3 lines changed or deleted 3 lines changed or added

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