bupa1018 commited on
Commit
f9594c0
·
1 Parent(s): 9a5dce7

Update chunk_python_code.py

Browse files
Files changed (1) hide show
  1. 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(documents, python_code, file_path))
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)