def save(self, info):
save_file = self.save_file<EOL>if not isfile(save_file):<EOL><INDENT>self.save_as(info)<EOL><DEDENT>else:<EOL><INDENT>fd = None<EOL>try:<EOL><INDENT>fd = open(save_file, "<STR_LIT:wb>")<EOL>dot_code = str(self.model)<EOL>fd.write(dot_code)<EOL><DEDENT>finally:<EOL><INDENT>if fd is not None:<EOL><INDENT>fd.close()<EOL><DEDENT><DEDENT><DEDENT>
Handles saving the current model to the last file.