Mercurial > hg > MakeItSo
comparison makeitso/main.py @ 1:c2f8464e0395
use correct method
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 03 Nov 2010 08:35:16 -0700 |
parents | 7a76836b50a7 |
children | 825922315ce6 |
comparison
equal
deleted
inserted
replaced
0:7a76836b50a7 | 1:c2f8464e0395 |
---|---|
45 args = _args | 45 args = _args |
46 | 46 |
47 # get the content | 47 # get the content |
48 content = sys.stdin.read() | 48 content = sys.stdin.read() |
49 template = Template(content) | 49 template = Template(content) |
50 print template.interpolate(**variables) | 50 print template.substitute(**variables) |
51 | 51 |
52 | 52 |
53 if __name__ == '__main__': | 53 if __name__ == '__main__': |
54 main() | 54 main() |