Fix newbytes leak.

This commit is contained in:
Itamar Turner-Trauring 2020-09-17 13:10:52 -04:00
parent 03fd566e2c
commit 9818512802

View File

@ -10,7 +10,8 @@ from __future__ import unicode_literals
from future.utils import PY2
if PY2:
from builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, bytes, dict, list, object, range, str, max, min # noqa: F401
# Don't import bytes to prevent leaking future's bytes.
from builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, dict, list, object, range, str, max, min # noqa: F401
from past.builtins import chr as byteschr