/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 breezy/externalcommand.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        bzrpath = os.environ.get('BZRPATH', '')
36
36
 
37
37
        for dir in bzrpath.split(os.pathsep):
38
 
            ## Empty directories are not real paths
 
38
            # Empty directories are not real paths
39
39
            if not dir:
40
40
                continue
41
41
            # This needs to be os.path.join() or windows cannot
46
46
 
47
47
        return None
48
48
 
49
 
 
50
49
    def __init__(self, path):
51
50
        self.path = path
52
51
 
63
62
        m = 'external command from %s\n\n' % self.path
64
63
        pipe = os.popen('%s --help' % self.path)
65
64
        return m + pipe.read()
66