Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tofu-rocketry committed Dec 12, 2022
1 parent 2258bbf commit 3d2b537
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions bin/receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ def main():
default_conf_location = '/etc/apel/receiver.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='DEPRECATED - location of logging config file (optional)',
Expand All @@ -59,7 +60,7 @@ def main():
# Absolute file path required when refreshing dn_file, relative path resulted in an error.
options.dn_file = os.path.abspath(options.dn_file)

# check if config file exists using os.path.isfile function
# Check if config file exists using os.path.isfile function.
if os.path.isfile(options.config):
cp = ConfigParser.ConfigParser({'use_ssl': 'true'})
cp.read(options.config)
Expand Down
7 changes: 4 additions & 3 deletions bin/sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ def main():
ver = "SSM %s.%s.%s" % __version__
default_conf_location = '/etc/apel/sender.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='DEPRECATED - location of logging config file (optional)',
Expand All @@ -50,7 +51,7 @@ def main():
if (os.path.exists(old_log_config_default_path) or options.log_config is not None):
logging.warning('Separate logging config file option has been deprecated.')

# check if config file exists using os.path.isfile function
# Check if config file exists using os.path.isfile function.
if os.path.isfile(options.config):
cp = ConfigParser.ConfigParser({'use_ssl': 'true'})
cp.read(options.config)
Expand Down

0 comments on commit 3d2b537

Please sign in to comment.