Spaces:
Sleeping
Sleeping
Update chunk_python_code.py
Browse files- chunk_python_code.py +1 -1
chunk_python_code.py
CHANGED
@@ -41,7 +41,7 @@ def _iterate_ast(python_code, documents, file_path):
|
|
41 |
# Check if there are no first-level nodes
|
42 |
if not first_level_nodes:
|
43 |
documents.extend(
|
44 |
-
_chunk_nodeless_python_code(
|
45 |
return
|
46 |
|
47 |
all_imports = all(isinstance(node, (ast.Import, ast.ImportFrom)) for node in first_level_nodes)
|
|
|
41 |
# Check if there are no first-level nodes
|
42 |
if not first_level_nodes:
|
43 |
documents.extend(
|
44 |
+
_chunk_nodeless_python_code(python_code, file_path))
|
45 |
return
|
46 |
|
47 |
all_imports = all(isinstance(node, (ast.Import, ast.ImportFrom)) for node in first_level_nodes)
|