]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
move setup code to separate fixtures
authorostr00000 <ostr00000@gmail.com>
Mon, 27 Feb 2023 22:16:13 +0000 (23:16 +0100)
committerostr00000 <ostr00000@gmail.com>
Mon, 27 Feb 2023 22:16:13 +0000 (23:16 +0100)
add explicit `topdown` argument,
fix camelCase in `_checkTopologicalOrder`,

alembic/script/base.py

index a3bdd3c09749b3e003ed8758160210fd0be1cece..b6858b59acb13471960428c1cbfc59147f8cb8d9 100644 (file)
@@ -967,7 +967,7 @@ class Script(revision.Revision):
     @classmethod
     def _list_py_dir(cls, scriptdir: ScriptDirectory, path: str) -> List[str]:
         paths = []
-        for root, dirs, files in os.walk(path):
+        for root, dirs, files in os.walk(path, topdown=True):
             if root.endswith("__pycache__"):
                 # a special case - we may include these files
                 # if a `sourceless` option is specified