def _update_version(self):
<EOL>current = self.data['<STR_LIT>']<EOL>current = utils.cleanup_version(current)<EOL>current_split = current.split('<STR_LIT:.>')<EOL>major = '<STR_LIT:.>'.join(current_split[:-<NUM_LIT:1>])<EOL>minor = current_split[-<NUM_LIT:1>]<EOL>try:<EOL><INDENT>minor = int(minor) + <NUM_LIT:1><EOL>suggestion = '<STR_LIT:.>'.join([major, str(minor)])<EOL><DEDENT>except ValueError:<EOL><INDENT>try:<EOL><INDENT>last = int(current[-<NUM_LIT:1>]) + <NUM_LIT:1><EOL>suggestion = current[:-<NUM_LIT:1>] + str(last)<EOL><DEDENT>except ValueError:<EOL><INDENT>logger.warn("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>suggestion = None<EOL><DEDENT><DEDENT>print("<STR_LIT>" % current)<EOL>q = "<STR_LIT>"<EOL>version = utils.ask_version(q, default=suggestion)<EOL>if not version:<EOL><INDENT>version = suggestion<EOL><DEDENT>if not version:<EOL><INDENT>logger.error("<STR_LIT>")<EOL>sys.exit()<EOL><DEDENT>self.data['<STR_LIT>'] = version<EOL>dev_version = self.data['<STR_LIT>'] % self.data<EOL>self.data['<STR_LIT>'] = dev_version<EOL>logger.info("<STR_LIT>",<EOL>dev_version)<EOL>self.vcs.version = self.data['<STR_LIT>']<EOL>
Ask for and store a new dev version string.