[Checkins] SVN: zope.interface/branches/regebro-python3/src/zope/interface/declarations.py The fixer can't handle oneliners, so I removed all one-liners from the doctests.
Lennart Regebro
regebro at gmail.com
Wed Apr 8 03:10:37 EDT 2009
Log message for revision 99000:
The fixer can't handle oneliners, so I removed all one-liners from the doctests.
Changed:
U zope.interface/branches/regebro-python3/src/zope/interface/declarations.py
-=-
Modified: zope.interface/branches/regebro-python3/src/zope/interface/declarations.py
===================================================================
--- zope.interface/branches/regebro-python3/src/zope/interface/declarations.py 2009-04-08 07:07:36 UTC (rev 98999)
+++ zope.interface/branches/regebro-python3/src/zope/interface/declarations.py 2009-04-08 07:10:36 UTC (rev 99000)
@@ -575,10 +575,10 @@
...
>>> class IC(Interface): pass
...
- >>> class A(object): implements(IA1, IA2)
- ...
- >>> class B(object): implements(IB)
- ...
+ >>> class A(object):
+ ... implements(IA1, IA2)
+ >>> class B(object):
+ ... implements(IB)
>>> class C(A, B):
... implements(IC)
@@ -632,10 +632,10 @@
...
>>> class IC(Interface): pass
...
- >>> class A(object): implements(IA1, IA2)
- ...
- >>> class B(object): implements(IB)
- ...
+ >>> class A(object):
+ ... implements(IA1, IA2)
+ >>> class B(object):
+ ... implements(IB)
>>> class C(A, B):
... implementsOnly(IC)
@@ -803,10 +803,10 @@
...
>>> class IC(Interface): pass
...
- >>> class A(object): implements(IA1, IA2)
- ...
- >>> class B(object): implements(IB)
- ...
+ >>> class A(object):
+ ... implements(IA1, IA2)
+ >>> class B(object):
+ ... implements(IB)
>>> class C(A, B):
... implements(IC)
@@ -907,10 +907,10 @@
...
>>> class IC(Interface): pass
...
- >>> class A(object): implements(IA1, IA2)
- ...
- >>> class B(object): implements(IB)
- ...
+ >>> class A(object):
+ ... implements(IA1, IA2)
+ >>> class B(object):
+ ... implements(IB)
>>> class C(A, B):
... implements(IC)
@@ -1221,12 +1221,12 @@
...
>>> class I5(Interface): pass
...
- >>> class A(object): implements(I1)
- ...
+ >>> class A(object):
+ ... implements(I1)
>>> class B(object): __implemented__ = I2
...
- >>> class C(A, B): implements(I31)
- ...
+ >>> class C(A, B):
+ ... implements(I31)
>>> c = C()
>>> directlyProvides(c, I4)
>>> [i.getName() for i in providedBy(c)]
@@ -1243,10 +1243,10 @@
1
>>> int(providedBy(c).extends(I5))
0
- >>> class COnly(A, B): implementsOnly(I31)
- ...
- >>> class D(COnly): implements(I5)
- ...
+ >>> class COnly(A, B):
+ ... implementsOnly(I31)
+ >>> class D(COnly):
+ ... implements(I5)
>>> c = D()
>>> directlyProvides(c, I4)
>>> [i.getName() for i in providedBy(c)]
More information about the Checkins
mailing list