/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/doc/__init__.py

  • Committer: Martin
  • Date: 2018-08-21 00:53:34 UTC
  • mto: This revision was merged to the branch mainline in revision 7074.
  • Revision ID: gzlist@googlemail.com-20180821005334-e1ogxakojyybpwib
Fix recursion check in C bencode implementation

Hard to get Cython to do the right thing but by inverting the
return code can use the standard except handling.

Avoid going through a Python call when encoding, which requires
the encode recursion check to work too.

Adjust tests to use a smaller limit to be more managable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
"""Documentation for bzrlib.
 
17
"""Documentation for breezy.
18
18
 
19
 
See bzrlib.doc.api for api documentation and in the future bzrlib.doc.man
 
19
See breezy.doc.api for api documentation and in the future breezy.doc.man
20
20
for man page generation.
21
21
"""
22
22
 
23
 
 
24
 
def load_tests(basic_tests, module, loader):
 
23
from __future__ import absolute_import
 
24
 
 
25
 
 
26
def load_tests(loader, basic_tests, pattern):
25
27
    suite = loader.suiteClass()
26
28
    # add the tests for this module (obviously none so far)
27
29
    suite.addTests(basic_tests)
28
30
 
29
31
    testmod_names = [
30
 
        'bzrlib.doc.api',
 
32
        'breezy.doc.api',
31
33
        ]
32
34
 
33
35
    # add the tests for the sub modules