[Zope3-checkins] SVN: Zope3/trunk/src/zope/interface/ Converted XXX to TODO.

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Jul 13 12:49:41 EDT 2004


Log message for revision 26467:
  Converted XXX to TODO.
  


Changed:
  U   Zope3/trunk/src/zope/interface/adapter.py
  U   Zope3/trunk/src/zope/interface/declarations.py
  U   Zope3/trunk/src/zope/interface/interface.py
  U   Zope3/trunk/src/zope/interface/tests/test_odd_declarations.py


-=-
Modified: Zope3/trunk/src/zope/interface/adapter.py
===================================================================
--- Zope3/trunk/src/zope/interface/adapter.py	2004-07-13 16:49:20 UTC (rev 26466)
+++ Zope3/trunk/src/zope/interface/adapter.py	2004-07-13 16:49:41 UTC (rev 26467)
@@ -610,7 +610,7 @@
 
     for key, value in adapters.iteritems():
 
-        # XXX Backward compatability
+        # TODO: Backward compatability
         # Don't need to handle 3-tuples some day
         try:
             (subscription, with, name, target) = key

Modified: Zope3/trunk/src/zope/interface/declarations.py
===================================================================
--- Zope3/trunk/src/zope/interface/declarations.py	2004-07-13 16:49:20 UTC (rev 26466)
+++ Zope3/trunk/src/zope/interface/declarations.py	2004-07-13 16:49:41 UTC (rev 26467)
@@ -386,7 +386,7 @@
             # Return it.
             return spec
 
-        # XXX need old style __implements__ compatibility?
+        # TODO: need old style __implements__ compatibility?
         # Hm, there's an __implemented__, but it's not a spec. Must be
         # an old-style declaration. Just compute a spec for it
         return Declaration(*_normalizeargs((spec, )))
@@ -399,7 +399,7 @@
         if spec is not None:
             return spec
 
-    # XXX need old style __implements__ comptability?
+    # TODO: need old style __implements__ comptability?
     if spec is not None:
         # old-style __implemented__ = foo declaration
         spec = (spec, ) # tuplefy, as it might be just an int

Modified: Zope3/trunk/src/zope/interface/interface.py
===================================================================
--- Zope3/trunk/src/zope/interface/interface.py	2004-07-13 16:49:20 UTC (rev 26466)
+++ Zope3/trunk/src/zope/interface/interface.py	2004-07-13 16:49:41 UTC (rev 26467)
@@ -754,22 +754,21 @@
         # __eq__, which is really fast.
         """Make interfaces sortable
 
-        It would ne nice if:
+        TODO: It would ne nice if:
 
            More specific interfaces should sort before less specific ones.
            Otherwise, sort on name and module.
 
            But this is too complicated, and we're going to punt on it
-           for now. XXX
+           for now.
 
-        XXX For now, sort on interface and module name.
+        For now, sort on interface and module name.
 
         None is treated as a pseudo interface that implies the loosest
         contact possible, no contract. For that reason, all interfaces
         sort before None.
 
         """
-
         if o1 == o2:
             return 0
 

Modified: Zope3/trunk/src/zope/interface/tests/test_odd_declarations.py
===================================================================
--- Zope3/trunk/src/zope/interface/tests/test_odd_declarations.py	2004-07-13 16:49:20 UTC (rev 26466)
+++ Zope3/trunk/src/zope/interface/tests/test_odd_declarations.py	2004-07-13 16:49:41 UTC (rev 26467)
@@ -36,9 +36,9 @@
 class B(Odd): __implemented__ = I2
 
 
-# XXX We are going to need more magic to make classProvides work with odd
-#     classes. This will work in the next iteration. For now, we'll use
-#     a different mechanism.
+# TODO: We are going to need more magic to make classProvides work with odd
+#       classes. This will work in the next iteration. For now, we'll use
+#       a different mechanism.
 
 # from zope.interface import classProvides
 



More information about the Zope3-Checkins mailing list