/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to tools/package_mf.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

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)