/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/plugins/po_merge/po_merge.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:
39
39
 
40
40
 
41
41
command_option = config.Option(
42
 
        'po_merge.command',
43
 
        default='msgmerge -N "{other}" "{pot_file}" -C "{this}" -o "{result}"',
44
 
        help='''\
 
42
    'po_merge.command',
 
43
    default='msgmerge -N "{other}" "{pot_file}" -C "{this}" -o "{result}"',
 
44
    help='''\
45
45
Command used to create a conflict-free .po file during merge.
46
46
 
47
47
The following parameters are provided by the hook:
57
57
 
58
58
 
59
59
po_dirs_option = config.ListOption(
60
 
        'po_merge.po_dirs', default='po,debian/po',
61
 
        help='List of dirs containing .po files that the hook applies to.')
 
60
    'po_merge.po_dirs', default='po,debian/po',
 
61
    help='List of dirs containing .po files that the hook applies to.')
62
62
 
63
63
 
64
64
po_glob_option = config.Option(
65
 
        'po_merge.po_glob', default='*.po',
66
 
        help='Glob matching all ``.po`` files in one of ``po_merge.po_dirs``.')
 
65
    'po_merge.po_glob', default='*.po',
 
66
    help='Glob matching all ``.po`` files in one of ``po_merge.po_dirs``.')
67
67
 
68
68
pot_glob_option = config.Option(
69
 
        'po_merge.pot_glob', default='*.pot',
70
 
        help='Glob matching the ``.pot`` file in one of ``po_merge.po_dirs``.')
 
69
    'po_merge.pot_glob', default='*.pot',
 
70
    help='Glob matching the ``.pot`` file in one of ``po_merge.po_dirs``.')
71
71
 
72
72
 
73
73
class PoMerger(merge.PerFileMerger):
81
81
        # FIXME: We use the branch config as there is no tree config
82
82
        # -- vila 2011-11-23
83
83
        self.conf = merger.this_branch.get_config_stack()
84
 
        # Which dirs are targeted by the hook 
 
84
        # Which dirs are targeted by the hook
85
85
        self.po_dirs = self.conf.get('po_merge.po_dirs')
86
 
        # Which files are targeted by the hook 
 
86
        # Which files are targeted by the hook
87
87
        self.po_glob = self.conf.get('po_merge.po_glob')
88
88
        # Which .pot file should be used
89
89
        self.pot_glob = self.conf.get('po_merge.pot_glob')