Bug 1714688 - Removed 'if PY2' logic from mozglue r=mhentges

mozglue is no longer used with Python 2

Differential Revision: https://phabricator.services.mozilla.com/D117510
This commit is contained in:
surajeet310 2021-06-11 20:37:44 +00:00
parent ae1a9ec1c3
commit 76bf30f3f0

View File

@ -7,7 +7,7 @@
from __future__ import print_function
from copy import deepcopy
from six import iteritems, PY2
from six import iteritems
from struct import unpack
import os
from uuid import UUID
@ -502,11 +502,6 @@ class DllBlocklistEntry(object):
@staticmethod
def check_ascii(name):
if PY2:
if not all(ord(c) < 128 for c in name):
raise ValueError('DLL name "%s" must be ASCII!' % name)
return
try:
# Supported in Python 3.7
if not name.isascii():