Mercurial > p > roundup > code
comparison roundup/configuration.py @ 7567:5e118944ef75
flake8: add extra blank lines
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 23 Jul 2023 23:19:03 -0400 |
| parents | 273c8c2b5042 |
| children | d30e534b078a |
comparison
equal
deleted
inserted
replaced
| 7566:df87f02c2930 | 7567:5e118944ef75 |
|---|---|
| 650 except OptionValueError: | 650 except OptionValueError: |
| 651 raise # pass through subclass | 651 raise # pass through subclass |
| 652 except ValueError: | 652 except ValueError: |
| 653 raise OptionValueError(self, value, "Integer number required") | 653 raise OptionValueError(self, value, "Integer number required") |
| 654 | 654 |
| 655 | |
| 655 class IntegerNumberGtZeroOption(Option): | 656 class IntegerNumberGtZeroOption(Option): |
| 656 | 657 |
| 657 """Integer numbers greater than zero.""" | 658 """Integer numbers greater than zero.""" |
| 658 | 659 |
| 659 def str2value(self, value): | 660 def str2value(self, value): |
| 665 return v | 666 return v |
| 666 except OptionValueError: | 667 except OptionValueError: |
| 667 raise # pass through subclass | 668 raise # pass through subclass |
| 668 except ValueError: | 669 except ValueError: |
| 669 raise OptionValueError(self, value, "Integer number required") | 670 raise OptionValueError(self, value, "Integer number required") |
| 671 | |
| 670 | 672 |
| 671 class OctalNumberOption(Option): | 673 class OctalNumberOption(Option): |
| 672 | 674 |
| 673 """Octal Integer numbers""" | 675 """Octal Integer numbers""" |
| 674 | 676 |
