/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 tools/package_mf.py

  • Committer: Jelmer Vernooij
  • Date: 2017-06-10 16:40:42 UTC
  • mfrom: (6653.6.7 rename-controldir)
  • mto: This revision was merged to the branch mainline in revision 6690.
  • Revision ID: jelmer@jelmer.uk-20170610164042-zrxqgy2htyduvke2
MergeĀ rename-controldirĀ branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
class CustomModuleFinder(modulefinder.ModuleFinder):
25
25
    """Custom module finder for processing python packages,
26
 
    e.g. bzr plugins packages.
 
26
    e.g. brz plugins packages.
27
27
 
28
28
    :param  path:   list of directories to search for modules;
29
29
                    if not specified, python standard library only is used.
59
59
 
60
60
    def get_result(self):
61
61
        """Return 2-tuple: (list of packages, list of modules)"""
62
 
        keys = self.modules.keys()
63
 
        keys.sort()
 
62
        keys = sorted(self.modules.keys())
64
63
        mods = []
65
64
        packs = []
66
65
        for key in keys:
82
81
 
83
82
    packs, mods = mf.get_result()
84
83
 
85
 
    print 'Packages:'
86
 
    print packs
 
84
    print('Packages:')
 
85
    print(packs)
87
86
 
88
 
    print 'Modules:'
89
 
    print mods
 
87
    print('Modules:')
 
88
    print(mods)