equal
deleted
inserted
replaced
71 if error is None: |
71 if error is None: |
72 self.CodeFile.globals.setanyText(python_code.getanyText()) |
72 self.CodeFile.globals.setanyText(python_code.getanyText()) |
73 os.remove(filepath) |
73 os.remove(filepath) |
74 self.CreateCodeFileBuffer(False) |
74 self.CreateCodeFileBuffer(False) |
75 self.OnCTNSave() |
75 self.OnCTNSave() |
76 except Exception, exc: |
76 except Exception as exc: |
77 error = unicode(exc) |
77 error = unicode(exc) |
78 |
78 |
79 if error is not None: |
79 if error is not None: |
80 self.GetCTRoot().logger.write_error( |
80 self.GetCTRoot().logger.write_error( |
81 _("Couldn't import old %s file.") % self.CTNName()) |
81 _("Couldn't import old %s file.") % self.CTNName()) |