From 13970840511777518926896a1492d8e5142cc43d Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Tue, 26 Aug 2014 22:42:14 -0400 Subject: [PATCH] Reinstate the bytes_type alias in case anyone is depending on it. --- tornado/util.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tornado/util.py b/tornado/util.py index c86fe983a..367bad9d3 100644 --- a/tornado/util.py +++ b/tornado/util.py @@ -123,6 +123,9 @@ else: unicode_type = unicode basestring_type = basestring +# Deprecated alias that was used before we dropped py25 support. +# Left here in case anyone outside Tornado is using it. +bytes_type = bytes if sys.version_info > (3,): exec(""" -- 2.47.2