From 4eb36de74d0da9e904a9eb835756f04f58325018 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sat, 14 May 2011 16:15:39 -0700 Subject: [PATCH] types.NoneType no longer exists in python 3 --- tornado/stack_context.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tornado/stack_context.py b/tornado/stack_context.py index fd3ac50e1..c5570b499 100644 --- a/tornado/stack_context.py +++ b/tornado/stack_context.py @@ -48,8 +48,6 @@ Example usage: from __future__ import with_statement -from types import NoneType - import contextlib import functools import itertools @@ -57,6 +55,8 @@ import logging import sys import threading +NoneType = type(None) + class _State(threading.local): def __init__(self): self.contexts = () -- 2.47.3