Rev 4720: note that we could probably grab all class objects pretty easily in http://bazaar.launchpad.net/~jameinel/bzr/2.0.4-pyrex-propagation

John Arbash Meinel john at arbash-meinel.com
Mon Jan 4 23:45:41 GMT 2010


At http://bazaar.launchpad.net/~jameinel/bzr/2.0.4-pyrex-propagation

------------------------------------------------------------
revno: 4720
revision-id: john at arbash-meinel.com-20100104234527-9k1kh0u5lkhzrd09
parent: john at arbash-meinel.com-20100104231320-f3es4l130o48ya7t
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.0.4-pyrex-propagation
timestamp: Mon 2010-01-04 17:45:27 -0600
message:
  note that we could probably grab all class objects pretty easily
-------------- next part --------------
=== modified file 'bzrlib/tests/test_source.py'
--- a/bzrlib/tests/test_source.py	2010-01-04 23:13:20 +0000
+++ b/bzrlib/tests/test_source.py	2010-01-04 23:45:27 +0000
@@ -379,6 +379,9 @@
         """
         both_exc_and_no_exc = []
         missing_except = []
+        # TODO: Add a class re to find what classes are defined in this module
+        #       A function that returns a class is the same as one that returns
+        #       an 'object', the exception handling is implied
         except_re = re.compile(r'\s*cdef\s*' # start with cdef
                                r'([\w *]*?)\s*' # this is the return signature
                                r'(\w+)\s*\(' # the function name



More information about the bazaar-commits mailing list