/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 bzrlib/__init__.py

  • Committer: Martin
  • Date: 2010-10-13 16:44:48 UTC
  • mto: This revision was merged to the branch mainline in revision 5494.
  • Revision ID: gzlist@googlemail.com-20101013164448-6fg84e7fuw29zhwr
Don't rely on bzrlib importing itself in _format_version_tuple doctest

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    1.0.0
72
72
    >>> print _format_version_tuple((1, 2, 0, 'dev', 0))
73
73
    1.2.0dev
74
 
    >>> print bzrlib._format_version_tuple((1, 2, 0, 'dev', 1))
 
74
    >>> print _format_version_tuple((1, 2, 0, 'dev', 1))
75
75
    1.2.0dev1
76
76
    >>> print _format_version_tuple((1, 1, 1, 'candidate', 2))
77
77
    1.1.1rc2
78
 
    >>> print bzrlib._format_version_tuple((2, 1, 0, 'beta', 1))
 
78
    >>> print _format_version_tuple((2, 1, 0, 'beta', 1))
79
79
    2.1b1
80
80
    >>> print _format_version_tuple((1, 4, 0))
81
81
    1.4.0
82
82
    >>> print _format_version_tuple((1, 4))
83
83
    1.4
84
 
    >>> print bzrlib._format_version_tuple((2, 1, 0, 'final', 1))
 
84
    >>> print _format_version_tuple((2, 1, 0, 'final', 1))
85
85
    Traceback (most recent call last):
86
86
    ...
87
87
    ValueError: version_info (2, 1, 0, 'final', 1) not valid