(path, ignoreEmptyFilesAndNewLines=False)
| 151 | return False |
| 152 | |
| 153 | def check_url(path, ignoreEmptyFilesAndNewLines=False): |
| 154 | if not os.path.exists(path): |
| 155 | error(path, 'not exists') |
| 156 | return False |
| 157 | (ok, url) = check_raw(path, 500, ignoreEmptyFilesAndNewLines) |
| 158 | url = urlparse(url) |
| 159 | if not url.scheme in ('https', 'http'): |
| 160 | ok = error(path, "invalid URL: {}", url) |
| 161 | return done(path, ok) |
| 162 | |
| 163 | def check_email(path): |
| 164 | (ok, email) = check_raw(path, 500) |
no test coverage detected