def setUp(self): self.editor = massedit.MassEdit() self.workspace = Workspace() self.file_name = os.path.join(self.workspace.top_dir, unicode("somefile.txt"))
def __fix_locale_gen(lang, locale_gen='/etc/locale.gen'): editor = massedit.MassEdit() editor.append_code_expr("re.sub('# {0}', '{0}', line)".format(lang)) editor.edit_file(locale_gen)
def setUp(self): self.editor = massedit.MassEdit()