diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-02-28 15:28:21 -0500 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-02-28 15:46:53 -0500 |
commit | 61d525cc16a10dcd780d2fc14a7371dc809223d0 (patch) | |
tree | a5d46354e5d82a775c13dd04724f4024a52ff243 /mesonbuild/ast/printer.py | |
parent | 0bb1673ec36b4fe498aa4636ac52ea24fd36b2e9 (diff) | |
download | meson-61d525cc16a10dcd780d2fc14a7371dc809223d0.zip meson-61d525cc16a10dcd780d2fc14a7371dc809223d0.tar.gz meson-61d525cc16a10dcd780d2fc14a7371dc809223d0.tar.bz2 |
refactor a few subsystem-relative imports that imported the wrong location
Inside of mesonbuild.ast.* we can and should import from .foobar, rather
than importing from .__init__'s re-exported version of that object.
Failing to do so results in an extremely brittle codebase where simply
changing the order of lines in __init__.py can result in ImportError.
Diffstat (limited to 'mesonbuild/ast/printer.py')
-rw-r--r-- | mesonbuild/ast/printer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/ast/printer.py b/mesonbuild/ast/printer.py index 3c53910..579a83d 100644 --- a/mesonbuild/ast/printer.py +++ b/mesonbuild/ast/printer.py @@ -17,7 +17,7 @@ from __future__ import annotations from .. import mparser -from . import AstVisitor +from .visitor import AstVisitor import re import typing as T |