parameters: (dbdir)
return_statement: return dict(config_parser.items("all"))
docstring: Read the ulord.conf file from dbdir, returns dictionary of settings
docstring_summary: Read the ulord.conf file from dbdir, returns dictionary of settings
docstring_tokens: Read the ulord . conf file from dbdir returns dictionary of settings
function: def read_bitcoin_config(dbdir):
      """Read the ulord.conf file from dbdir, returns dictionary of settings"""
      from ConfigParser import SafeConfigParser
  
      class FakeSecHead(object):
          def __init__(self, fp):
              self.fp = fp
              self.sechead = '[all]\n'
          def readline(self):
              if self.sechead:
                  try: return self.sechead
                  finally: self.sechead = None
              else:
                  s = self.fp.readline()
                  if s.find('#') != -1:
                      s = s[0:s.find('#')].strip() +"\n"
                  return s
  
      config_parser = SafeConfigParser()
      config_parser.readfp(FakeSecHead(open(os.path.join(dbdir, "ulord.conf"))))
      return dict(config_parser.items("all"))
function_tokens: def read_bitcoin_config ( dbdir ) : from ConfigParser import SafeConfigParser class FakeSecHead ( object ) : def __init__ ( self , fp ) : self . fp = fp self . sechead = '[all]\n' def readline ( self ) : if self . sechead : try : return self . sechead finally : self . sechead = None else : s = self . fp . readline ( ) if s . find ( '#' ) != - 1 : s = s [ 0 : s . find ( '#' ) ] . strip ( ) + "\n" return s config_parser = SafeConfigParser ( ) config_parser . readfp ( FakeSecHead ( open ( os . path . join ( dbdir , "ulord.conf" ) ) ) ) return dict ( config_parser . items ( "all" ) )