From 2c03e145866337a0dded66e0c87ce235cd29581c Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sat, 27 May 2017 16:28:37 -0700 Subject: [PATCH] [1.11.x] Corrected REPL example in forms docs for Python 3. Backport of c3e638112d2a96c8d678524903f37b13c6692188 from master --- docs/ref/forms/api.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index c74cfaed48..38d1348da1 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -1208,8 +1208,8 @@ by setting the name of the field to ``None`` on the subclass. For example:: >>> class ChildForm(ParentForm): ... name = None - >>> ChildForm().fields.keys() - ... ['age'] + >>> list(ChildForm().fields) + ['age'] .. _form-prefix: