| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
| 5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
| 6 | 6 |
| 7 import glob | 7 import glob |
| 8 import gsutil | 8 import gsutil |
| 9 import hashlib | |
| 10 import imp | 9 import imp |
| 11 import optparse | 10 import optparse |
| 12 import os | 11 import os |
| 13 import re | 12 import re |
| 14 import shutil | 13 import shutil |
| 15 import subprocess | 14 import subprocess |
| 16 import sys | 15 import sys |
| 17 import tempfile | 16 import tempfile |
| 18 import ziputils | 17 import ziputils |
| 19 | 18 |
| (...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1148 """delete the given file - do not re-throw any exceptions that occur""" | 1147 """delete the given file - do not re-throw any exceptions that occur""" |
| 1149 if os.path.exists(f): | 1148 if os.path.exists(f): |
| 1150 try: | 1149 try: |
| 1151 os.remove(f) | 1150 os.remove(f) |
| 1152 except OSError: | 1151 except OSError: |
| 1153 print 'error deleting %s' % f | 1152 print 'error deleting %s' % f |
| 1154 | 1153 |
| 1155 | 1154 |
| 1156 if __name__ == '__main__': | 1155 if __name__ == '__main__': |
| 1157 sys.exit(main()) | 1156 sys.exit(main()) |
| OLD | NEW |