]> granicus.if.org Git - python/commitdiff
Cleanup example
authorRaymond Hettinger <python@rcn.com>
Wed, 1 Jun 2011 23:01:21 +0000 (16:01 -0700)
committerRaymond Hettinger <python@rcn.com>
Wed, 1 Jun 2011 23:01:21 +0000 (16:01 -0700)
Doc/library/functions.rst

index 7a3a2d563022501d063d0e60a4980efdf5d05486..57748b6b49451987ba17b779c44d033e57e346dc 100644 (file)
@@ -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::