| OLD | NEW |
| 1 #!/usr/bin/env python | |
| 2 | |
| 3 # Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 1 # Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
| 4 # | 2 # |
| 5 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 6 # modification, are permitted provided that the following conditions | 4 # modification, are permitted provided that the following conditions |
| 7 # are met: | 5 # are met: |
| 8 # | 6 # |
| 9 # 1. Redistributions of source code must retain the above | 7 # 1. Redistributions of source code must retain the above |
| 10 # copyright notice, this list of conditions and the following | 8 # copyright notice, this list of conditions and the following |
| 11 # disclaimer. | 9 # disclaimer. |
| 12 # 2. Redistributions in binary form must reproduce the above | 10 # 2. Redistributions in binary form must reproduce the above |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 href_paths = [href_tag['href'] for href_tag in elements_with_href_attrib
utes] | 145 href_paths = [href_tag['href'] for href_tag in elements_with_href_attrib
utes] |
| 148 | 146 |
| 149 paths = src_paths + href_paths + urls | 147 paths = src_paths + href_paths + urls |
| 150 for path in paths: | 148 for path in paths: |
| 151 if not(path.startswith('http:')) and not(path.startswith('mailto:'))
: | 149 if not(path.startswith('http:')) and not(path.startswith('mailto:'))
: |
| 152 uri_scheme_pattern = re.compile(r"[A-Za-z][A-Za-z+.-]*:") | 150 uri_scheme_pattern = re.compile(r"[A-Za-z][A-Za-z+.-]*:") |
| 153 if not uri_scheme_pattern.match(path): | 151 if not uri_scheme_pattern.match(path): |
| 154 support_files.append(path) | 152 support_files.append(path) |
| 155 | 153 |
| 156 return support_files | 154 return support_files |
| OLD | NEW |