/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/option.py

  • Committer: Martin
  • Date: 2018-11-18 19:48:57 UTC
  • mto: This revision was merged to the branch mainline in revision 7205.
  • Revision ID: gzlist@googlemail.com-20181118194857-mqty4xka790jf934
Fix remaining whitespace lint in codebase

Enables rules W191, W291, W293, and W391 for flake8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
246
246
            self.custom_callback(option, self._param_name, bool_v, parser)
247
247
 
248
248
    def _optparse_callback(self, option, opt, value, parser):
249
 
        try:
250
 
            v = self.type(value)
251
 
        except ValueError as e:
252
 
            raise optparse.OptionValueError(
253
 
                'invalid value for option %s: %s' % (option, value))
 
249
        v = self.type(value)
254
250
        setattr(parser.values, self._param_name, v)
255
251
        if self.custom_callback is not None:
256
252
            self.custom_callback(option, self.name, v, parser)