mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix errors detected by Ruff (#3918)
### What problem does this PR solve? Fix errors detected by Ruff ### Type of change - [x] Refactoring
This commit is contained in:
@ -22,7 +22,7 @@ class RAGFlowJsonParser:
|
||||
txt = binary.decode(encoding, errors="ignore")
|
||||
json_data = json.loads(txt)
|
||||
chunks = self.split_json(json_data, True)
|
||||
sections = [json.dumps(l, ensure_ascii=False) for l in chunks if l]
|
||||
sections = [json.dumps(line, ensure_ascii=False) for line in chunks if line]
|
||||
return sections
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user