| OLD | NEW |
| 1 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # TODO(gwilson): 1. Change text differs to use external utils. | 5 # TODO(gwilson): 1. Change text differs to use external utils. |
| 6 # 2. Change text_expectations parsing to existing | 6 # 2. Change text_expectations parsing to existing |
| 7 # logic in layout_pagckage.test_expectations. | 7 # logic in layout_pagckage.test_expectations. |
| 8 | 8 |
| 9 import difflib | 9 import difflib |
| 10 import errno | 10 import errno |
| (...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 localFile.write(webFile.read()) | 883 localFile.write(webFile.read()) |
| 884 webFile.close() | 884 webFile.close() |
| 885 localFile.close() | 885 localFile.close() |
| 886 os.chmod(local_filename, 0777) | 886 os.chmod(local_filename, 0777) |
| 887 except urllib2.HTTPError: | 887 except urllib2.HTTPError: |
| 888 return None | 888 return None |
| 889 except urllib2.URLError: | 889 except urllib2.URLError: |
| 890 print "The url %s is malformed." % url | 890 print "The url %s is malformed." % url |
| 891 return None | 891 return None |
| 892 return localFile.name | 892 return localFile.name |
| OLD | NEW |