From: Martin von Gagern Date: Wed, 7 Aug 2013 08:30:36 +0000 (+0200) Subject: Format doctest suitable for Python 2 X-Git-Tag: v5.1.0b1~5^2~1^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fca6c539c11f9e1ab424530f95e5bee5d7f6af5d;p=thirdparty%2Ftornado.git Format doctest suitable for Python 2 --- 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'