[tor-commits] [trunnel/master] Actually fill in boilerplate templates
nickm at torproject.org
nickm at torproject.org
Thu Sep 25 17:16:50 UTC 2014
commit f16263a362603d9255c19c12ad51590c247096fe
Author: Nick Mathewson <nickm at torproject.org>
Date: Thu Sep 25 13:16:48 2014 -0400
Actually fill in boilerplate templates
---
lib/trunnel/Boilerplate.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/trunnel/Boilerplate.py b/lib/trunnel/Boilerplate.py
index 221d09e..e38a4d9 100644
--- a/lib/trunnel/Boilerplate.py
+++ b/lib/trunnel/Boilerplate.py
@@ -21,13 +21,13 @@ def emit(target_dir=None):
def emitfile(fname, in_fname, out_fname):
settings = {
- 'fname' : 'fname',
+ 'fname' : fname,
'version' : trunnel.__version__
}
with open(in_fname, 'r') as inp, open(out_fname, 'w') as out:
out.write("/* %(fname)s -- copied from Trunnel v%(version)s\n"
" * https://gitweb.torproject.org/trunnel.git\n"
- " */\n")
+ " */\n" % settings)
out.write(inp.read())
__license__ = """
More information about the tor-commits
mailing list