зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1870213 - Remove usage of six in python/mozrelease r=mach-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D196527
This commit is contained in:
Родитель
d9db7701f9
Коммит
0b5da408a6
|
@ -2,7 +2,7 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from six.moves.urllib.parse import urlunsplit
|
||||
from urllib.parse import urlunsplit
|
||||
|
||||
product_ftp_map = {
|
||||
"fennec": "mobile",
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
import os
|
||||
import re
|
||||
|
||||
from six import string_types
|
||||
|
||||
from .chunking import getChunk
|
||||
|
||||
|
||||
|
@ -187,9 +185,9 @@ class UpdateVerifyConfig(object):
|
|||
"Couldn't add release identified by build_id '%s' and from_path '%s': "
|
||||
"already exists in config" % (build_id, from_path)
|
||||
)
|
||||
if isinstance(locales, string_types):
|
||||
if isinstance(locales, str):
|
||||
locales = sorted(list(locales.split()))
|
||||
if isinstance(patch_types, string_types):
|
||||
if isinstance(patch_types, str):
|
||||
patch_types = list(patch_types.split())
|
||||
self.releases.append(
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче