Keldos commited on
Commit
dd9c432
1 Parent(s): 6c11728

chore: 去除`parse_text()`中的多余变量i

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -68,7 +68,7 @@ def count_token(message):
68
  def parse_text(text):
69
  in_code_block = False
70
  new_lines = []
71
- for i,line in enumerate(text.split("\n")):
72
  if line.strip().startswith("```"):
73
  in_code_block = not in_code_block
74
  if in_code_block:
 
68
  def parse_text(text):
69
  in_code_block = False
70
  new_lines = []
71
+ for line in text.split("\n"):
72
  if line.strip().startswith("```"):
73
  in_code_block = not in_code_block
74
  if in_code_block: