def fetchSettings(self): preprocessor = NullPreprocessor() parser = SettingsParser(preprocessor, None) parser.parse(self.settingsText) return parser.settings
def fetchSettings(self): settings = self.inner.fetchSettings() if self.overrideSettings: for s in self.overrideSettings: line = self.normalizeLine(s) settingParser = SettingsParser(self.compositeLineProcessor, settings) settingParser.processLine(line) return settings
def fetchSettings(self): if not os.path.exists(self.pathToSettings): raise Exception('settings file {0} not found'.format(self.pathToSettings)) if not os.path.isfile(self.pathToSettings): raise Exception('{0} is not a file'.format(self.pathToSettings)) settingsFile = open(self.pathToSettings) content = settingsFile.read() parser = SettingsParser(self.compositeLineProcessor, None) parser.parse(content) return parser.settings
def __init__(self, textPreprocessor): SettingsParser.__init__(self, textPreprocessor, None) self.processLineCall = 0