mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00

Restore parser location after movings in #5552 for backwards compatibility. ## For community ⬇️ **Please click the 👍 reaction instead of leaving a `+1` or 👍 comment** --------- Co-authored-by: a <1@1.1> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
17 lines
492 B
Python
17 lines
492 B
Python
"""Implements the xonsh parser."""
|
|
|
|
from xonsh.lib.lazyasd import lazyobject
|
|
from xonsh.platform import PYTHON_VERSION_INFO
|
|
|
|
|
|
@lazyobject
|
|
def Parser():
|
|
if PYTHON_VERSION_INFO > (3, 10):
|
|
from xonsh.parsers.v310 import Parser as p
|
|
elif PYTHON_VERSION_INFO > (3, 9):
|
|
from xonsh.parsers.v39 import Parser as p
|
|
elif PYTHON_VERSION_INFO > (3, 8):
|
|
from xonsh.parsers.v38 import Parser as p
|
|
else:
|
|
from xonsh.parsers.v36 import Parser as p
|
|
return p
|