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

  • Committer: Martin Pool
  • Date: 2005-08-29 05:06:32 UTC
  • Revision ID: mbp@sourcefrog.net-20050829050632-a26baaf6a0efbf25
- cope with plugin modules without a __path__ attribute

Show diffs side-by-side

added added

removed removed

Lines of Context:
1673
1673
        from inspect import getdoc
1674
1674
        from pprint import pprint
1675
1675
        for plugin in bzrlib.plugin.all_plugins:
1676
 
            print plugin.__path__[0]
 
1676
            if hasattr(plugin, '__path__'):
 
1677
                print plugin.__path__[0]
 
1678
            else:
 
1679
                print `plugin`
1677
1680
            d = getdoc(plugin)
1678
1681
            if d:
1679
1682
                print '\t', d.split('\n')[0]