From fca6c539c11f9e1ab424530f95e5bee5d7f6af5d Mon Sep 17 00:00:00 2001 From: Martin von Gagern Date: Wed, 7 Aug 2013 10:30:36 +0200 Subject: [PATCH] Format doctest suitable for Python 2 --- tornado/httputil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/httputil.py b/tornado/httputil.py index df057d965..e5b42d8de 100644 --- a/tornado/httputil.py +++ b/tornado/httputil.py @@ -425,7 +425,7 @@ def _parse_header(line): Return the main content-type and a dictionary of options. >>> d = _parse_header("CD: fd; foo=\"bar\"; file*=utf-8''T%C3%A4st")[1] - >>> d['file'] == 'T\u00e4st' + >>> d['file'] == r'T\u00e4st'.encode('ascii').decode('unicode_escape') True >>> d['foo'] 'bar' -- 2.47.3