def setContext(self, printer, wikiDocument, wordList, printType, addopt): self.wikiDocument = wikiDocument self.wordList = wordList self.printer = printer try: self.separator = unescapeWithRe(addopt[1]) except: self.separator = u"\n\n\n\n" # TODO Error message?
def setContext(self, printer, wikiDocument, wordList, printType, addopt): self.wikiDocument = wikiDocument self.wordList = wordList self.printer = printer try: self.separator = unescapeWithRe(addopt[1]) except: self.separator = "\n\n\n\n" # TODO Error message?