[Zope-Checkins] CVS: Zope/lib/python/Interface - Attribute.py:1.5 Document.py:1.3 Exceptions.py:1.9 IAttribute.py:1.3 IElement.py:1.5 IInterface.py:1.3 IMethod.py:1.3 Implements.py:1.3 Mapping.py:1.5 Method.py:1.12 Verify.py:1.3 _Element.py:1.3 _Interface.py:1.5 _InterfaceClass.py:1.6 __init__.py:1.9 _object.py:1.4 pprint.py:1.7 pyskel.py:1.6

Martijn Pieters mj@zope.com
Wed, 14 Aug 2002 17:36:03 -0400


Update of /cvs-repository/Zope/lib/python/Interface
In directory cvs.zope.org:/tmp/cvs-serv14060

Modified Files:
	Attribute.py Document.py Exceptions.py IAttribute.py 
	IElement.py IInterface.py IMethod.py Implements.py Mapping.py 
	Method.py Verify.py _Element.py _Interface.py 
	_InterfaceClass.py __init__.py _object.py pprint.py pyskel.py 
Log Message:
Clean up indentation and trailing whitespace.


=== Zope/lib/python/Interface/Attribute.py 1.4 => 1.5 ===
--- Zope/lib/python/Interface/Attribute.py:1.4	Tue Jun 11 11:34:28 2002
+++ Zope/lib/python/Interface/Attribute.py	Wed Aug 14 17:35:32 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """
 
@@ -27,5 +27,3 @@
     # infrastructure in place.
     #
     #__implements__ = IAttribute
-
-


=== Zope/lib/python/Interface/Document.py 1.2 => 1.3 ===
--- Zope/lib/python/Interface/Document.py:1.2	Fri Jun  7 13:18:29 2002
+++ Zope/lib/python/Interface/Document.py	Wed Aug 14 17:35:32 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """ Pretty-Print an Interface object as structured text (Yum)
 
@@ -26,7 +26,7 @@
     """ Output structured text format.  Note, this will wack any existing
     'structured' format of the text.  """
 
-    
+
     r = ["%s\n\n" % I.getName()]
     outp = r.append
     level = 1
@@ -83,12 +83,12 @@
         for line in lines[1:]:
             indent=len(line) - len(line.lstrip())
             if indent < min_indent or min_indent is None:
-                min_indent=indent   
+                min_indent=indent
         for line in lines[1:]:
             nlines.append(line[min_indent:])
     return '\n'.join(nlines)
-    
-    
+
+
 _trans = maketrans("\r\n", "  ")
 def _justify_and_indent(text, level, munge=0, width=72):
     """ indent and justify text, rejustify (munge) if specified """
@@ -116,11 +116,3 @@
             lines.append( (" " * level) + line)
 
         return '\n'.join(lines)
-            
-
-
-
-    
-
-
-


=== Zope/lib/python/Interface/Exceptions.py 1.8 => 1.9 ===
--- Zope/lib/python/Interface/Exceptions.py:1.8	Mon Jun 10 13:22:06 2002
+++ Zope/lib/python/Interface/Exceptions.py	Wed Aug 14 17:35:32 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 
 class DoesNotImplement(Exception):
@@ -61,4 +61,3 @@
     because it doesn't contain an interface or a sequence of valid
     implementation assertions.
     """
-


=== Zope/lib/python/Interface/IAttribute.py 1.2 => 1.3 ===
--- Zope/lib/python/Interface/IAttribute.py:1.2	Fri Jun  7 13:18:29 2002
+++ Zope/lib/python/Interface/IAttribute.py	Wed Aug 14 17:35:32 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """
 
@@ -21,4 +21,3 @@
 
 class IAttribute(IElement):
     """Attribute descriptors"""
-    


=== Zope/lib/python/Interface/IElement.py 1.4 => 1.5 ===
--- Zope/lib/python/Interface/IElement.py:1.4	Tue Jun 11 11:34:28 2002
+++ Zope/lib/python/Interface/IElement.py	Wed Aug 14 17:35:32 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """
 
@@ -32,7 +32,7 @@
 
     def getDoc():
         """Returns the documentation for the object."""
-        
+
     def getTaggedValue(tag):
         """Returns the value associated with 'tag'."""
 


=== Zope/lib/python/Interface/IInterface.py 1.2 => 1.3 ===
--- Zope/lib/python/Interface/IInterface.py:1.2	Fri Jun  7 13:18:29 2002
+++ Zope/lib/python/Interface/IInterface.py	Wed Aug 14 17:35:32 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """
 
@@ -43,7 +43,7 @@
           are expected, optional arguments and their default values,
           the position or arguments in the signature, whether the
           method accepts arbitrary arguments and whether the method
-          accepts arbitrary keyword arguments. 
+          accepts arbitrary keyword arguments.
 
       o Optional tagged data.  Interface objects (and their attributes and
         methods) can have optional, application specific tagged data
@@ -142,7 +142,7 @@
 
         A true value is returned in the interface extends the other
         interface, and false otherwise.
-        
+
         Normally, an interface doesn't extend itself. If a false value
         is passed as the second argument, or via the 'strict' keyword
         argument, then a true value will be returned if the interface


=== Zope/lib/python/Interface/IMethod.py 1.2 => 1.3 ===
--- Zope/lib/python/Interface/IMethod.py:1.2	Fri Jun  7 13:18:29 2002
+++ Zope/lib/python/Interface/IMethod.py	Wed Aug 14 17:35:32 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """
 


=== Zope/lib/python/Interface/Implements.py 1.2 => 1.3 ===
--- Zope/lib/python/Interface/Implements.py:1.2	Fri Jun  7 13:18:29 2002
+++ Zope/lib/python/Interface/Implements.py	Wed Aug 14 17:35:32 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """Implemantation assertion facilities.
 
@@ -62,7 +62,7 @@
     # this allows us to work with proxy wrappers in Python 2.2,
     # yet remain compatible with earlier versions of python.
     implements_class = getattr(implements, '__class__', None)
-    
+
     if implements_class == InterfaceClass or \
        isInstance(implements, InterfaceClass):
         return visitor(implements)
@@ -156,4 +156,3 @@
         klass.__implements__ = interface
     else:
         klass.__implements__ = old, interface
-


=== Zope/lib/python/Interface/Mapping.py 1.4 => 1.5 ===
--- Zope/lib/python/Interface/Mapping.py:1.4	Tue Jun  4 16:38:46 2002
+++ Zope/lib/python/Interface/Mapping.py	Wed Aug 14 17:35:32 2002
@@ -1,4 +1,3 @@
-
 import Basic, Util
 
 class Mapping(Basic.Base):
@@ -11,7 +10,7 @@
         """
 
 class QueryMapping(Mapping):
-    
+
     def has_key(key):
         """Check whether the object has an item with the given key"""
 
@@ -68,7 +67,7 @@
         The type of the IReadSequence is not specified. It could be a
         list or a tuple or some other type.
         """
-    
+
 
 class Sequence(Mapping):
     "Keys must be integers in a sequence starting at 0."
@@ -79,4 +78,3 @@
 Util.assertTypeImplements(type(()), (Sequence, Sized, Basic.HashKey))
 Util.assertTypeImplements(type([]), (Sequence, Sized, MutableMapping))
 Util.assertTypeImplements(type({}), (Mapping, Sized, MutableMapping))
-


=== Zope/lib/python/Interface/Method.py 1.11 => 1.12 ===
--- Zope/lib/python/Interface/Method.py:1.11	Tue Jun 11 11:34:28 2002
+++ Zope/lib/python/Interface/Method.py	Wed Aug 14 17:35:32 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """Method interfaces
 
@@ -44,7 +44,7 @@
     def getSignatureInfo(self):
         info = {}
         for t in sig_traits:
-            info[t] = getattr(self, t) 
+            info[t] = getattr(self, t)
 
         return info
 
@@ -104,28 +104,3 @@
 def fromMethod(meth, interface=''):
     func = meth.im_func
     return fromFunction(func, interface, imlevel=1)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-


=== Zope/lib/python/Interface/Verify.py 1.2 => 1.3 ===
--- Zope/lib/python/Interface/Verify.py:1.2	Fri Jun  7 13:18:29 2002
+++ Zope/lib/python/Interface/Verify.py	Wed Aug 14 17:35:32 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 
 from Exceptions import BrokenImplementation, DoesNotImplement
@@ -63,7 +63,7 @@
         mess = _incompat(d, meth)
         if mess:
             raise BrokenMethodImplementation(n, mess)
-            
+
     return 1
 
 def verifyClass(iface, candidate, tentative=0):


=== Zope/lib/python/Interface/_Element.py 1.2 => 1.3 ===
--- Zope/lib/python/Interface/_Element.py:1.2	Fri Jun  7 13:18:29 2002
+++ Zope/lib/python/Interface/_Element.py	Wed Aug 14 17:35:32 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """
 
@@ -27,14 +27,14 @@
     #__implements__ = IElement
 
     __tagged_values = {}
-    
+
     def __init__(self, __name__, __doc__=''):
         """Create an 'attribute' description
         """
         if not __doc__ and __name__.find(' ') >= 0:
             __doc__ = __name__
             __name__ = None
-        
+
         self.__name__=__name__
         self.__doc__=__doc__
 
@@ -57,4 +57,3 @@
     def setTaggedValue(self, tag, value):
         """ Associates 'value' with 'key'. """
         self.__tagged_values[tag] = value
-


=== Zope/lib/python/Interface/_Interface.py 1.4 => 1.5 ===
--- Zope/lib/python/Interface/_Interface.py:1.4	Tue Jun 11 11:34:28 2002
+++ Zope/lib/python/Interface/_Interface.py	Wed Aug 14 17:35:32 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """Interface object implementation
 
@@ -38,5 +38,5 @@
     implements(InterfaceClass, IInterface)
 
 wire()
-del wire 
+del wire
 del InterfaceClass


=== Zope/lib/python/Interface/_InterfaceClass.py 1.5 => 1.6 ===
--- Zope/lib/python/Interface/_InterfaceClass.py:1.5	Tue Jun 11 11:34:28 2002
+++ Zope/lib/python/Interface/_InterfaceClass.py	Wed Aug 14 17:35:32 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """Interface object implementation
 
@@ -37,7 +37,7 @@
 
     def __init__(self, name, bases=(), attrs=None, __doc__=None,
                  __module__=None):
-        
+
         if __module__ is None:
             if attrs is not None and attrs.has_key('__module__'):
                 __module__ = attrs['__module__']
@@ -90,7 +90,7 @@
         """
         if not strict and self is other:
             return 1
-        
+
         for b in self.__bases__:
             if b == other: return 1
             if b.extends(other): return 1
@@ -134,7 +134,7 @@
             for name in base.names(all):
                 r[name] = 1
         return r.keys()
-            
+
     def namesAndDescriptions(self, all=0):
         """Return the attribute names and descriptions defined by the interface
         """
@@ -144,7 +144,7 @@
         r = {}
         for name, d in self.__attrs.items():
             r[name] = d
-            
+
         for base in self.__bases__:
             for name, d in base.namesAndDescriptions(all):
                 if not r.has_key(name):
@@ -158,7 +158,7 @@
         r = self.queryDescriptionFor(name)
         if r is not None:
             return r
-        
+
         raise KeyError, name
 
     def queryDescriptionFor(self, name, default=None):
@@ -171,7 +171,7 @@
             r = base.queryDescriptionFor(name, self)
             if r is not self:
                 return r
-            
+
         return default
 
     def deferred(self):
@@ -182,7 +182,7 @@
         klass={}
         exec "class %s: pass" % self.__name__ in klass
         klass=klass[self.__name__]
-        
+
         self.__d(klass.__dict__)
 
         self._deferred=klass
@@ -194,7 +194,7 @@
         Retrieve a named interface.
         '''
         return None
-            
+
     def __d(self, dict):
 
         for k, v in self.__attrs.items():


=== Zope/lib/python/Interface/__init__.py 1.8 => 1.9 ===
--- Zope/lib/python/Interface/__init__.py:1.8	Tue Jun 11 11:34:28 2002
+++ Zope/lib/python/Interface/__init__.py	Wed Aug 14 17:35:32 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """Interfaces
 
@@ -34,7 +34,7 @@
 interface, IInterface in the IInterface module.
 
 The package has several public modules:
-    
+
   o Attribute has the implementation for interface attributes
     for people who want to build interfaces by hand.
     (Maybe someone should cry YAGNI for this. ;)
@@ -70,4 +70,3 @@
 from _Interface import Interface
 from Attribute import Attribute
 Base = Interface # XXX We need to stamp out Base usage
-


=== Zope/lib/python/Interface/_object.py 1.3 => 1.4 ===
--- Zope/lib/python/Interface/_object.py:1.3	Mon Jun 10 16:15:14 2002
+++ Zope/lib/python/Interface/_object.py	Wed Aug 14 17:35:32 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """Provide a halfway believable rendition of Python 2.2's object
 
@@ -55,5 +55,4 @@
         def m(self): pass
 
     ClassTypes  += (type(_x), )
-    MethodTypes += (type(_x.m), )            
-
+    MethodTypes += (type(_x.m), )


=== Zope/lib/python/Interface/pprint.py 1.6 => 1.7 ===
--- Zope/lib/python/Interface/pprint.py:1.6	Thu Feb  7 13:00:19 2002
+++ Zope/lib/python/Interface/pprint.py	Wed Aug 14 17:35:32 2002
@@ -1,4 +1,3 @@
-
 """ Pretty-Print an Interface object as structured text (Yum) """
 
 import string
@@ -17,13 +16,13 @@
         for line in lines[1:]:
             indent=len(line) - len(line.lstrip())
             if indent < min_indent or min_indent is None:
-                min_indent=indent   
+                min_indent=indent
         for line in lines[1:]:
             nlines.append(line[min_indent:])
     return '\n'.join(nlines, '\n')
-    
-    
-    
+
+
+
 def justify_and_indent(text, level, munge=0, width=72):
     """ indent and justify text, rejustify (munge) if specified """
 
@@ -50,7 +49,7 @@
             lines.append( (" " * level) + line)
 
         return '\n'.join(lines)
-            
+
 
 def interface_as_stx(I, munge=0):
     """ Output structured text format.  Note, this will wack any existing
@@ -76,14 +75,7 @@
             item = "%s%s -- %s" % (desc.getName(), desc.getSignatureRepr(), desc.getDoc())
         else:
             item = "%s -- %s" % (desc.getName(), desc.getDoc())
-            
+
         outp = outp + justify_and_indent(trim_doc_string(item), level, munge)  + "\n\n"
 
     return outp
-
-
-
-    
-
-
-


=== Zope/lib/python/Interface/pyskel.py 1.5 => 1.6 ===
--- Zope/lib/python/Interface/pyskel.py:1.5	Tue Jul  9 08:14:42 2002
+++ Zope/lib/python/Interface/pyskel.py	Wed Aug 14 17:35:32 2002
@@ -3,14 +3,14 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """
 Generate method skeletins for intefaces.
@@ -95,7 +95,7 @@
     print
     print "    #"
     print "    ############################################################"
-    
+
 
 def resolve(name, _silly=('__doc__',), _globals={}):
     # Support for file path syntax; this way I can use TAB to search for
@@ -183,9 +183,7 @@
         return map(lambda item: item[1:], items)
 
 
-        
+
 if __name__ == '__main__':
     for a in sys.argv[1:]:
         skel(a)
-    
-