mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
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:
parent
ae1a9ec1c3
commit
76bf30f3f0
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user