/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/symbol_versioning.py

  • Committer: Martin Pool
  • Date: 2006-06-10 23:16:19 UTC
  • mfrom: (1759 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1761.
  • Revision ID: mbp@sourcefrog.net-20060610231619-05b997deeb005d02
[merge] bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
 
116
116
def _decorate_docstring(callable, deprecation_version, label,
117
117
                        decorated_callable):
118
 
    docstring_lines = callable.__doc__.split('\n')
 
118
    if callable.__doc__:
 
119
        docstring_lines = callable.__doc__.split('\n')
 
120
    else:
 
121
        docstring_lines = []
119
122
    if len(docstring_lines) == 0:
120
123
        decorated_callable.__doc__ = deprecation_version % ("This " + label)
121
124
    elif len(docstring_lines) == 1: