From: Ben Darnell Date: Wed, 27 Aug 2014 02:42:14 +0000 (-0400) Subject: Reinstate the bytes_type alias in case anyone is depending on it. X-Git-Tag: v4.1.0b1~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13970840511777518926896a1492d8e5142cc43d;p=thirdparty%2Ftornado.git Reinstate the bytes_type alias in case anyone is depending on it. --- 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("""