/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: Richard Wilbur
  • Date: 2016-02-04 19:07:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6618.
  • Revision ID: richard.wilbur@gmail.com-20160204190728-p0zvfii6zase0fw7
Update COPYING.txt from the original http://www.gnu.org/licenses/gpl-2.0.txt  (Only differences were in whitespace.)  Thanks to Petr Stodulka for pointing out the discrepancy.

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. brz plugins packages.
 
26
    e.g. bzr 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 = sorted(self.modules.keys())
 
62
        keys = self.modules.keys()
 
63
        keys.sort()
63
64
        mods = []
64
65
        packs = []
65
66
        for key in keys:
81
82
 
82
83
    packs, mods = mf.get_result()
83
84
 
84
 
    print('Packages:')
85
 
    print(packs)
 
85
    print 'Packages:'
 
86
    print packs
86
87
 
87
 
    print('Modules:')
88
 
    print(mods)
 
88
    print 'Modules:'
 
89
    print mods