Mercurial > libervia-web
comparison twisted/plugins/libervia_server.py @ 1221:331ada56cdca
misc: renamed SafeConfigParser in libervia_server twisted plugin after python 3 port
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 16 Aug 2019 17:16:42 +0200 |
parents | b2d067339de3 |
children | f511f8fbbf8a |
comparison
equal
deleted
inserted
replaced
1220:afb40966cd0a | 1221:331ada56cdca |
---|---|
177 # there's no good way to know | 177 # there's no good way to know |
178 # if the options values are the hard-coded ones or if they have been passed | 178 # if the options values are the hard-coded ones or if they have been passed |
179 # on the command line. | 179 # on the command line. |
180 | 180 |
181 # FIXME: must be refactored + code can be factorised with backend | 181 # FIXME: must be refactored + code can be factorised with backend |
182 config_parser = configparser.SafeConfigParser() | 182 config_parser = configparser.ConfigParser() |
183 config_parser.read(C.CONFIG_FILES) | 183 config_parser.read(C.CONFIG_FILES) |
184 self.handleDeprecated(config_parser) | 184 self.handleDeprecated(config_parser) |
185 for param in self.optParameters + OPT_PARAMETERS_CFG: | 185 for param in self.optParameters + OPT_PARAMETERS_CFG: |
186 name = param[0] | 186 name = param[0] |
187 try: | 187 try: |