From b76cdb25c9f724cd93c5555ac0e967a148d455dc Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 15 Dec 2011 11:06:08 +0800 Subject: refine python code --- scripts/utils.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/utils.py') diff --git a/scripts/utils.py b/scripts/utils.py index 77eecbe..391e54f 100644 --- a/scripts/utils.py +++ b/scripts/utils.py @@ -22,8 +22,13 @@ import os +header = '''/* This file is generated by python scripts. Don't edit this file directly. + */ +''' + def expand_file(filename, get_table_content): infile = open(filename, "r") + print(header) for line in infile.readlines(): line = line.rstrip(os.linesep) if len(line) < 3 : -- cgit