mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
style: Standardize string quotes in update-history.py
This commit is contained in:
parent
0cee8bc6ac
commit
7fec2661fc
1 changed files with 2 additions and 2 deletions
|
@ -13,9 +13,9 @@ from aider import __version__
|
||||||
def get_latest_version_from_history():
|
def get_latest_version_from_history():
|
||||||
with open("HISTORY.md", "r") as f:
|
with open("HISTORY.md", "r") as f:
|
||||||
history_content = f.read()
|
history_content = f.read()
|
||||||
|
|
||||||
# Find most recent version header
|
# Find most recent version header
|
||||||
match = re.search(r'### Aider v(\d+\.\d+\.\d+)', history_content)
|
match = re.search(r"### Aider v(\d+\.\d+\.\d+)", history_content)
|
||||||
if not match:
|
if not match:
|
||||||
raise ValueError("Could not find version header in HISTORY.md")
|
raise ValueError("Could not find version header in HISTORY.md")
|
||||||
return match.group(1)
|
return match.group(1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue