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

  • Committer: Robey Pointer
  • Date: 2006-09-03 00:13:54 UTC
  • mto: This revision was merged to the branch mainline in revision 1996.
  • Revision ID: robey@lag.net-20060903001354-1f596a529c9c4934
remove usage of hasattr

Show diffs side-by-side

added added

removed removed

Lines of Context:
2479
2479
        import bzrlib.plugin
2480
2480
        from inspect import getdoc
2481
2481
        for name, plugin in bzrlib.plugin.all_plugins().items():
2482
 
            if hasattr(plugin, '__path__'):
 
2482
            if getattr(plugin, '__path__', None) != None:
2483
2483
                print plugin.__path__[0]
2484
 
            elif hasattr(plugin, '__file__'):
 
2484
            elif getattr(plugin, '__file__', None) != None:
2485
2485
                print plugin.__file__
2486
2486
            else:
2487
 
                print `plugin`
 
2487
                print repr(plugin)
2488
2488
                
2489
2489
            d = getdoc(plugin)
2490
2490
            if d: