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:
Logan Rosen 2023-12-20 03:05:48 +00:00
Родитель d9db7701f9
Коммит 0b5da408a6
2 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -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(
{