Bug 1091270 - Move isURL out of automationutils; r=jgriffin

This commit is contained in:
Pankaj Malhotra(:bitgeeky)
2014-11-04 16:59:40 -08:00
parent ff428bb315
commit ebf9456905
4 changed files with 7 additions and 13 deletions

View File

@@ -13,7 +13,6 @@ import signal
import subprocess
import sys
import tempfile
from urlparse import urlparse
import zipfile
import mozinfo
@@ -21,7 +20,6 @@ __all__ = [
"ZipFileReader",
"addCommonOptions",
"dumpLeakLog",
"isURL",
"processLeakLog",
'KeyValueParseError',
'parseKeyValue',
@@ -107,11 +105,6 @@ class ZipFileReader(object):
for name in self._zipfile.namelist():
self._extractname(name, path)
def isURL(thing):
"""Return True if |thing| looks like a URL."""
# We want to download URLs like http://... but not Windows paths like c:\...
return len(urlparse(thing).scheme) >= 2
# Python does not provide strsignal() even in the very latest 3.x.
# This is a reasonable fake.
def strsig(n):