~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

(jr) use .format() instead of % for string formatting where there are
 multiple formats in one string to allow for translations (Jonathan Riddell)

Show diffs side-by-side

added added

removed removed

Lines of Context:
554
554
                        see_also_links.append(item)
555
555
                    else:
556
556
                        # Use a Sphinx link for this entry
557
 
                        link_text = gettext(":doc:`%s <%s-help>`") % (item, item)
 
557
                        link_text = gettext(":doc:`{0} <{1}-help>`").format(
 
558
                                                                    item, item)
558
559
                        see_also_links.append(link_text)
559
560
                see_also = see_also_links
560
561
            result += gettext(':See also: %s') % ', '.join(see_also) + '\n'