diff options
author | Frank Maker <ffrank@google.com> | 2011-05-25 11:07:04 -0700 |
---|---|---|
committer | Frank Maker <ffrank@google.com> | 2011-05-25 17:28:37 -0700 |
commit | 7b6795dad91988d76a282fc2b033f0cc5585ee65 (patch) | |
tree | 6865006286576b39f02115f2fae1ac72791706ec /libc/kernel/tools/clean_header.py | |
parent | 9d918606123cbf8656517868a65437b0a832aa9e (diff) |
Fixed bug where -k option would not be passed to cleanupFile function
Changed cleanupFile to have no default original path, forcing it to be passed instead, thereby conforming to the Google Python style guide.
Diffstat (limited to 'libc/kernel/tools/clean_header.py')
-rwxr-xr-x | libc/kernel/tools/clean_header.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/kernel/tools/clean_header.py b/libc/kernel/tools/clean_header.py index 94b19cee8..0549fc24e 100755 --- a/libc/kernel/tools/clean_header.py +++ b/libc/kernel/tools/clean_header.py @@ -7,7 +7,7 @@ from utils import * noUpdate = 1 -def cleanupFile( path, original_path=kernel_original_path ): +def cleanupFile( path, original_path): """reads an original header and perform the cleanup operation on it this functions returns the destination path and the clean header as a single string""" @@ -121,7 +121,7 @@ if __name__ == "__main__": if noUpdate: for path in args: - dst_path, newdata = cleanupFile(path) + dst_path, newdata = cleanupFile(path,kernel_original_path) print newdata sys.exit(0) @@ -131,7 +131,7 @@ if __name__ == "__main__": b = BatchFileUpdater() for path in args: - dst_path, newdata = cleanupFile(path) + dst_path, newdata = cleanupFile(path,kernel_original_path) if not dst_path: continue |