From e4e6eeef32574aa928c8100a3c0d78b9129f5e86 Mon Sep 17 00:00:00 2001 From: Refael Ackermann Date: Tue, 22 Jan 2019 06:26:12 -0500 Subject: [PATCH] python3 de-linting (#14973) xrange give a very very slight memory optimization but is incompatible with python3 --- encoding/resources/single-byte-raw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoding/resources/single-byte-raw.py b/encoding/resources/single-byte-raw.py index b4a6c90405ec85..494f37a185d31e 100644 --- a/encoding/resources/single-byte-raw.py +++ b/encoding/resources/single-byte-raw.py @@ -1,3 +1,3 @@ def main(request, response): response.headers.set("Content-Type", "text/plain;charset=" + request.GET.first("label")) - response.content = "".join(chr(byte) for byte in xrange(255)) + response.content = "".join(chr(byte) for byte in range(255))