def split_history_item(history):
try:<EOL><INDENT>log_file, description = shlex.split(history)<EOL><DEDENT>except ValueError:<EOL><INDENT>log_file = history.strip()<EOL>description = None<EOL><DEDENT>return log_file, description<EOL>
Return the log file and optional description for item.