refactoring: move openpy, inspectors to lib (#5553)

https://github.com/xonsh/xonsh/issues/5538

## 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>
This commit is contained in:
Andy Kipp 2024-06-29 01:56:18 +02:00 committed by GitHub
parent d7ca254ae3
commit 772ee21643
Failed to generate hash of commit
4 changed files with 3 additions and 3 deletions

View file

@ -19,8 +19,8 @@ import types
import warnings import warnings
from ast import AST from ast import AST
from xonsh.inspectors import Inspector
from xonsh.lazyasd import lazyobject from xonsh.lazyasd import lazyobject
from xonsh.lib.inspectors import Inspector
from xonsh.platform import ON_POSIX from xonsh.platform import ON_POSIX
from xonsh.tools import ( from xonsh.tools import (
XonshCalledProcessError, XonshCalledProcessError,

View file

@ -17,7 +17,7 @@ import types
from xonsh.lazyasd import LazyObject from xonsh.lazyasd import LazyObject
from xonsh.lazyimps import pyghooks, pygments from xonsh.lazyimps import pyghooks, pygments
from xonsh.openpy import read_py_file from xonsh.lib.openpy import read_py_file
from xonsh.platform import HAS_PYGMENTS from xonsh.platform import HAS_PYGMENTS
from xonsh.style_tools import partial_color_tokenize from xonsh.style_tools import partial_color_tokenize
from xonsh.tokenize import detect_encoding from xonsh.tokenize import detect_encoding

View file

@ -11,9 +11,9 @@ import typing as tp
import xonsh.procs.pipelines as xpp import xonsh.procs.pipelines as xpp
import xonsh.prompt.cwd as prompt import xonsh.prompt.cwd as prompt
from xonsh.cli_utils import Annotated, Arg, ArgParserAlias from xonsh.cli_utils import Annotated, Arg, ArgParserAlias
from xonsh.inspectors import find_file
from xonsh.lazyasd import LazyObject from xonsh.lazyasd import LazyObject
from xonsh.lazyimps import pyghooks, pygments from xonsh.lazyimps import pyghooks, pygments
from xonsh.lib.inspectors import find_file
from xonsh.platform import HAS_PYGMENTS from xonsh.platform import HAS_PYGMENTS
from xonsh.tools import DefaultNotGiven, normabspath, print_color, to_bool from xonsh.tools import DefaultNotGiven, normabspath, print_color, to_bool