Fix urllib import in BreakpadSymbols
This commit is contained in:
parent
a8bc419778
commit
6189f27f7f
@ -30,9 +30,9 @@ class SymbolCommand(ShellCommand):
|
|||||||
def run(self, master, job):
|
def run(self, master, job):
|
||||||
ShellCommand.run(self, master, job)
|
ShellCommand.run(self, master, job)
|
||||||
if self.stdout != None and len(self.stdout) > 0:
|
if self.stdout != None and len(self.stdout) > 0:
|
||||||
request = urllib.request.Request(symbolServer, self.stdout.encode('utf-8'))
|
request = urllib.Request(symbolServer, self.stdout.encode('utf-8'))
|
||||||
request.add_header("Content-Type", "text/plain")
|
request.add_header("Content-Type", "text/plain")
|
||||||
self.serverResponse = urllib.request.urlopen(request).read().decode('utf-8')
|
self.serverResponse = urllib.urlopen(request).read().decode('utf-8')
|
||||||
def spew(self, runner):
|
def spew(self, runner):
|
||||||
if self.stderr != None and len(self.stderr) > 0:
|
if self.stderr != None and len(self.stderr) > 0:
|
||||||
runner.PrintOut(self.stderr)
|
runner.PrintOut(self.stderr)
|
||||||
|
Loading…
Reference in New Issue
Block a user