Bug 1592855 - run mach vendor dav1d with python3 r=ahal
authorEdwin Takahashi <egao@mozilla.com>
Tue, 05 Nov 2019 15:28:21 +0000
changeset 500648 0f875399e986934acd11a4418a5b8270060325d3
parent 500647 e9c23b0282eea039de2a1762e07139adfb393312
child 500649 0c306145f19e4c4ca0982afdb3513e83db7dfac7
push id36768
push usershindli@mozilla.com
push dateTue, 05 Nov 2019 22:07:34 +0000
treeherdermozilla-central@e96c1ca93d25 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1592855
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1592855 - run mach vendor dav1d with python3 r=ahal Changes: - change `urlparse` import to `urllib.parse` to make switch over to python3 Depends on D51414 Differential Revision: https://phabricator.services.mozilla.com/D51648
python/mozbuild/mozbuild/vendor_dav1d.py
--- a/python/mozbuild/mozbuild/vendor_dav1d.py
+++ b/python/mozbuild/mozbuild/vendor_dav1d.py
@@ -10,17 +10,17 @@ from mozbuild.base import (
 )
 import mozfile
 import mozpack.path as mozpath
 import os
 import requests
 import re
 import sys
 import tarfile
-from urlparse import urlparse
+from urllib.parse import urlparse
 
 
 class VendorDav1d(MozbuildObject):
     def upstream_snapshot(self, revision):
         '''Construct a url for a tarball snapshot of the given revision.'''
         if 'code.videolan.org' in self.repo_url:
             return mozpath.join(self.repo_url, '-', 'archive', revision + '.tar.gz')
         else: