Files
railseek6/extract_early_return.py
2026-01-12 22:31:11 +08:00

9 lines
390 B
Python

import sys
with open('LightRAG-main/lightrag/operate.py', 'r', encoding='utf-8') as f:
lines = f.readlines()
for i, line in enumerate(lines):
if 'if not search_result' in line and 'final_entities' in line:
print(f'Found at line {i+1}: {line.strip()}')
for j in range(max(0, i-2), min(len(lines), i+15)):
print(f'{j+1}: {lines[j].rstrip()}')
break