def parse(version):
    try:
        return Version(version)
    except InvalidVersion:
        return LegacyVersion(version)
Provides one history command back.
dataset/ETHPy150Open Toblerity/Shapely/packaging/version.py/parse--crossover with--dataset/ETHPy150Open ipython/ipython-py3k/IPython/deathrow/gui/wx/ipshell_nonblocking.py/NonBlockingIPShell.history_back