]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Format doctest suitable for Python 2
authorMartin von Gagern <Martin.vGagern@gmx.net>
Wed, 7 Aug 2013 08:30:36 +0000 (10:30 +0200)
committerMartin von Gagern <Martin.vGagern@gmx.net>
Wed, 7 Aug 2013 08:30:36 +0000 (10:30 +0200)
tornado/httputil.py

index df057d96535af7140bf7da79e2844f15553fe2c2..e5b42d8def61a3c410033640323430ac66963c79 100644 (file)
@@ -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'