diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2008-11-08 14:42:24 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2008-11-08 14:42:24 +0000 |
commit | f6966ca0f0713c8e731c83d64617e713d1073663 (patch) | |
tree | bd704a5ae4c00a4f482e608ae6b8b44b19d222e5 | |
parent | 65e72a6567435f8de78d481ca719e9b509c6a9c5 (diff) | |
download | deheader-f6966ca0f0713c8e731c83d64617e713d1073663.tar.gz deheader-f6966ca0f0713c8e731c83d64617e713d1073663.tar.bz2 deheader-f6966ca0f0713c8e731c83d64617e713d1073663.tar.xz deheader-f6966ca0f0713c8e731c83d64617e713d1073663.zip |
Condition the baton-twirling properly.
-rwxr-xr-x | deheader | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -81,8 +81,6 @@ class InclusionMap: path = os.path.join(root, name) if c_source(path): self.files.append(path) - else: - print >>sys.stderr, "deheader: can't analyze %s" % parth self.c_to_h = {} for sourcefile in self.files: includes = [] @@ -172,7 +170,8 @@ def c_analyze(source, includes, verbosity): # headers might depend on earlier ones includes.reverse() unneeded = [] - baton = Baton(sourcefile + ": ", "Done") + if verbosity == 0: + baton = Baton(sourcefile + ": ", "Done") saveit = SaveForModification(sourcefile) try: while True: @@ -190,7 +189,8 @@ def c_analyze(source, includes, verbosity): break finally: del saveit - baton.end() + if verbosity == 0: + baton.end() return unneeded def deheader(sourcefile, includes, remove, verbose): |