Changeset bf0a80e


Ignore:
Timestamp:
Nov 23, 2008 8:23:13 PM (16 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
34bc05c
Parents:
4064742
Message:

remove an extraneous if/else

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_experiment_control.py

    r4064742 rbf0a80e  
    191191        self.ssh_identity_file = None
    192192
    193         # XXX remove if/else?
    194         if config.has_section("experiment_control"):
    195             self.debug = config.get("experiment_control", "create_debug")
    196             self.state_filename = config.get("experiment_control",
    197                     "experiment_state_file")
    198             self.splitter_url = config.get("experiment_control", "splitter_url")
    199             self.fedkit = config.get("experiment_control", "fedkit")
    200             accessdb_file = config.get("experiment_control", "accessdb")
    201         else:
    202             self.debug = False
    203             self.state_filename = None
    204             self.splitter_url = None
    205             self.fedkit = None
     193        self.debug = config.getboolean("experiment_control", "create_debug")
     194        self.state_filename = config.get("experiment_control",
     195                "experiment_state_file")
     196        self.splitter_url = config.get("experiment_control", "splitter_url")
     197        self.fedkit = config.get("experiment_control", "fedkit")
     198        accessdb_file = config.get("experiment_control", "accessdb")
    206199
    207200        self.ssh_pubkey_file = config.get("experiment_control",
Note: See TracChangeset for help on using the changeset viewer.