From 88fc66179b1d05f95cb7ac58f4bceef366d0ff11 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 1 Jun 2011 16:01:21 -0700 Subject: [PATCH] Cleanup example --- Doc/library/functions.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 7a3a2d56302..57748b6b494 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -306,11 +306,10 @@ available. They are listed here in alphabetical order. 'unpack', 'unpack_from'] >>> class Shape(object): def __dir__(self): - return ['area', 'perimter', 'location'] - - >>> f = Shape() - >>> dir(f) - ['area', 'perimter', 'location'] + return ['area', 'perimeter', 'location'] + >>> s = Shape() + >>> dir(s) + ['area', 'perimeter', 'location'] .. note::