Return True if the name looks like a URL.
(self, template)
| 381 | ) |
| 382 | |
| 383 | def is_url(self, template): |
| 384 | """Return True if the name looks like a URL.""" |
| 385 | if ":" not in template: |
| 386 | return False |
| 387 | scheme = template.split(":", 1)[0].lower() |
| 388 | return scheme in self.url_schemes |
| 389 | |
| 390 | def apply_umask(self, old_path, new_path): |
| 391 | current_umask = os.umask(0) |