OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright 2008, Google Inc. | 2 # Copyright 2008, Google Inc. |
3 # All rights reserved. | 3 # All rights reserved. |
4 # | 4 # |
5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
7 # met: | 7 # met: |
8 # | 8 # |
9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
11 # * Redistributions in binary form must reproduce the above | 11 # * Redistributions in binary form must reproduce the above |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 logging.info("traversing dir: %s", filename) | 148 logging.info("traversing dir: %s", filename) |
149 for dirpath, dirlist, filelist in os.walk(filename): | 149 for dirpath, dirlist, filelist in os.walk(filename): |
150 for fname in filelist: | 150 for fname in filelist: |
151 CheckOneFile(os.path.join(dirpath, fname), ncdis, objdump) | 151 CheckOneFile(os.path.join(dirpath, fname), ncdis, objdump) |
152 else: | 152 else: |
153 CheckOneFile(filename, ncdis, objdump) | 153 CheckOneFile(filename, ncdis, objdump) |
154 return 0 | 154 return 0 |
155 | 155 |
156 if '__main__' == __name__: | 156 if '__main__' == __name__: |
157 sys.exit(main(sys.argv)) | 157 sys.exit(main(sys.argv)) |
OLD | NEW |