From 366a150833d34bd60651ee86e7b712043ea05dc7 Mon Sep 17 00:00:00 2001 From: Shawn Warren Date: Wed, 27 Jan 2016 08:47:00 -0600 Subject: [PATCH] fix syntax in same key example >>> d = MultiDict[('a', 1), ('b', 2), ('a', 3)]) File "", line 1 d = MultiDict[('a', 1), ('b', 2), ('a', 3)]) ^ SyntaxError: invalid syntax After adding the missing '(' between 't' and '[': >>> d = MultiDict([('a', 1), ('b', 2), ('a', 3)]) >>> d --- docs/multidict.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/multidict.rst b/docs/multidict.rst index c0e3fea11f1..393a95ae7d9 100644 --- a/docs/multidict.rst +++ b/docs/multidict.rst @@ -51,9 +51,9 @@ MultiDict If the same key appears several times it will be added, e.g.:: - >>> d = MultiDict[('a', 1), ('b', 2), ('a', 3)]) + >>> d = MultiDict([('a', 1), ('b', 2), ('a', 3)]) >>> d - + .. method:: len(d)