]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Reinstate the bytes_type alias in case anyone is depending on it.
authorBen Darnell <ben@bendarnell.com>
Wed, 27 Aug 2014 02:42:14 +0000 (22:42 -0400)
committerBen Darnell <ben@bendarnell.com>
Wed, 27 Aug 2014 02:42:41 +0000 (22:42 -0400)
tornado/util.py

index c86fe983ac37e3ac1ca4723350568d240c38a162..367bad9d3708639ff4599e45b4a4d45848bfd5a1 100644 (file)
@@ -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("""