[Checkins] SVN: zope.interface/trunk/src/zope/interface/ whitespace fixes

Benji York benji at zope.com
Tue Apr 1 14:33:47 EDT 2008


Log message for revision 85058:
  whitespace fixes
  

Changed:
  U   zope.interface/trunk/src/zope/interface/README.ru.txt
  U   zope.interface/trunk/src/zope/interface/tests/test_interface.py

-=-
Modified: zope.interface/trunk/src/zope/interface/README.ru.txt
===================================================================
--- zope.interface/trunk/src/zope/interface/README.ru.txt	2008-04-01 18:31:54 UTC (rev 85057)
+++ zope.interface/trunk/src/zope/interface/README.ru.txt	2008-04-01 18:33:46 UTC (rev 85058)
@@ -42,7 +42,7 @@
 
   >>> type(IFoo)
   <class 'zope.interface.interface.InterfaceClass'>
-  
+
 Мы можем запросить у интерфейса его документацию::
 
   >>> IFoo.__doc__
@@ -238,7 +238,7 @@
   ... # doctest: +NORMALIZE_WHITESPACE
   Traceback (most recent call last):
     ...
-  TypeError: Can't use implementer with classes.  
+  TypeError: Can't use implementer with classes.
   Use one of the class-declaration functions instead.
 
 Объявление предоставляемых интерфейсов

Modified: zope.interface/trunk/src/zope/interface/tests/test_interface.py
===================================================================
--- zope.interface/trunk/src/zope/interface/tests/test_interface.py	2008-04-01 18:31:54 UTC (rev 85057)
+++ zope.interface/trunk/src/zope/interface/tests/test_interface.py	2008-04-01 18:33:46 UTC (rev 85058)
@@ -162,7 +162,7 @@
             except Invalid, error:
                 self.assertEquals(error.args[0], e)
             else:
-                self._assert(0) # validateInvariants should always raise 
+                self._assert(0) # validateInvariants should always raise
                 # Invalid
             self.assertEquals(len(e), error_len)
             msgs = [error.args[0] for error in e]
@@ -170,7 +170,7 @@
             for msg in msgs:
                 self.assertEquals(msg, error_msgs.pop(0))
         # the tests
-        self.assertEquals(IInvariant.getTaggedValue('invariants'), 
+        self.assertEquals(IInvariant.getTaggedValue('invariants'),
                           [ifFooThenBar])
         self.assertEquals(IInvariant.validateInvariants(o), None)
         o.bar = 27
@@ -180,19 +180,19 @@
         del o.bar
         errorsEqual(self, o, 1, ['If Foo, then Bar!'])
         # nested interfaces with invariants:
-        self.assertEquals(ISubInvariant.getTaggedValue('invariants'), 
+        self.assertEquals(ISubInvariant.getTaggedValue('invariants'),
                           [BarGreaterThanFoo])
         o = InvariantC()
         directlyProvides(o, ISubInvariant)
         o.foo = 42
-        # even though the interface has changed, we should still only have one 
+        # even though the interface has changed, we should still only have one
         # error.
         errorsEqual(self, o, 1, ['If Foo, then Bar!'], ISubInvariant)
-        # however, if we set foo to 0 (Boolean False) and bar to a negative 
+        # however, if we set foo to 0 (Boolean False) and bar to a negative
         # number then we'll get the new error
         o.foo = 2
         o.bar = 1
-        errorsEqual(self, o, 1, ['Please, Boo MUST be greater than Foo!'], 
+        errorsEqual(self, o, 1, ['Please, Boo MUST be greater than Foo!'],
                     ISubInvariant)
         # and if we set foo to a positive number and boo to 0, we'll
         # get both errors!
@@ -205,7 +205,7 @@
         o.foo = 1
         o.bar = 2
         self.assertEquals(IInvariant.validateInvariants(o), None) # woohoo
-        # now we'll do two invariants on the same interface, 
+        # now we'll do two invariants on the same interface,
         # just to make sure that a small
         # multi-invariant interface is at least minimally tested.
         o = InvariantC()
@@ -217,10 +217,10 @@
         # then this would be the way to do it.  Probably a bad idea, though. :-)
         IInvariant.setTaggedValue('invariants', invariants)
         #
-        # even though the interface has changed, we should still only have one 
+        # even though the interface has changed, we should still only have one
         # error.
         errorsEqual(self, o, 1, ['If Foo, then Bar!'])
-        # however, if we set foo to 0 (Boolean False) and bar to a negative 
+        # however, if we set foo to 0 (Boolean False) and bar to a negative
         # number then we'll get the new error
         o.foo = 2
         o.bar = 1
@@ -323,8 +323,8 @@
     ...     pass
 
     >>> I2.__bases__ = (I,)
-    
 
+
 """
 
 def test_suite():



More information about the Checkins mailing list