Spaces:
Sleeping
Sleeping
Update chunk_python_code.py
Browse files- chunk_python_code.py +1 -1
chunk_python_code.py
CHANGED
@@ -43,7 +43,7 @@ def _iterate_ast(python_code, documents, file_path):
|
|
43 |
|
44 |
all_imports = all(isinstance(node, (ast.Import, ast.ImportFrom)) for node in first_level_nodes)
|
45 |
if all_imports:
|
46 |
-
|
47 |
_chunk_import_only_python_code(documents, python_code, file_path))
|
48 |
|
49 |
# Iterate over first-level nodes
|
|
|
43 |
|
44 |
all_imports = all(isinstance(node, (ast.Import, ast.ImportFrom)) for node in first_level_nodes)
|
45 |
if all_imports:
|
46 |
+
documents.extend(
|
47 |
_chunk_import_only_python_code(documents, python_code, file_path))
|
48 |
|
49 |
# Iterate over first-level nodes
|