Skip to content

Commit

Permalink
Address codeclimate issues
Browse files Browse the repository at this point in the history
- Removes redundant backslashes and adds parenthesis
- fixes indentation on multi-line strings for easier reading
  • Loading branch information
rowan04 committed Nov 18, 2022
1 parent 6953171 commit f8ee659
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions bin/receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ def main():
default_log_location = '/etc/apel/logging.cfg'
default_dns_location = '/etc/apel/dns'
op = OptionParser(description=__doc__, version=ver)
op.add_option('-c', '--config', help='location of config file, ' \
'default path: ' + default_conf_location,
op.add_option('-c', '--config', help=('location of config file, '
'default path: ' + default_conf_location),
default=default_conf_location)
op.add_option('-l', '--log_config',
help='location of logging config file (optional), ' \
'default path: ' + default_log_location,
help=('location of logging config file (optional), '
'default path: ' + default_log_location),
default=default_log_location)
op.add_option('-d', '--dn_file',
help='location of the file containing valid DNs, ' \
'default path: ' + default_dns_location,
help=('location of the file containing valid DNs, '
'default path: ' + default_dns_location),
default=default_dns_location)
(options, unused_args) = op.parse_args()

Expand Down
8 changes: 4 additions & 4 deletions bin/sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ def main():
default_conf_location = '/etc/apel/sender.cfg'
default_log_location = '/etc/apel/logging.cfg'
op = OptionParser(description=__doc__, version=ver)
op.add_option('-c', '--config', help='location of config file, ' \
'default path: ' + default_conf_location,
op.add_option('-c', '--config', help=('location of config file, '
'default path: ' + default_conf_location),
default=default_conf_location)
op.add_option('-l', '--log_config',
help='location of logging config file (optional), ' \
'default path: ' + default_log_location,
help=('location of logging config file (optional), '
'default path: ' + default_log_location),
default=default_log_location)
(options, unused_args) = op.parse_args()

Expand Down

0 comments on commit f8ee659

Please sign in to comment.