Bug 1091270 - Move isURL out of automationutils; r=jgriffin
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user