mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
style: fix comment spacing and remove commented code
This commit is contained in:
parent
da706d9eb8
commit
fea7134064
1 changed files with 4 additions and 4 deletions
|
@ -794,7 +794,7 @@ class Coder:
|
||||||
"""Check text for URLs and offer to open them in a browser."""
|
"""Check text for URLs and offer to open them in a browser."""
|
||||||
|
|
||||||
url_pattern = re.compile(r"(https?://[^\s/$.?#].[^\s]*?)([.']*$|[.'\s])")
|
url_pattern = re.compile(r"(https?://[^\s/$.?#].[^\s]*?)([.']*$|[.'\s])")
|
||||||
#ai strip trailing . or ' from the url!
|
# ai strip trailing . or ' from the url!
|
||||||
|
|
||||||
urls = list(set(url_pattern.findall(text))) # Use set to remove duplicates
|
urls = list(set(url_pattern.findall(text))) # Use set to remove duplicates
|
||||||
for url in urls:
|
for url in urls:
|
||||||
|
@ -1152,10 +1152,10 @@ class Coder:
|
||||||
except retry_exceptions() as err:
|
except retry_exceptions() as err:
|
||||||
# Print the error and its base classes
|
# Print the error and its base classes
|
||||||
err_msg = str(err)
|
err_msg = str(err)
|
||||||
#base_classes = []
|
# base_classes = []
|
||||||
#for cls in err.__class__.__mro__: # Skip the class itself
|
# for cls in err.__class__.__mro__: # Skip the class itself
|
||||||
# base_classes.append(cls.__name__)
|
# base_classes.append(cls.__name__)
|
||||||
#if base_classes:
|
# if base_classes:
|
||||||
# err_msg += f"\nBase classes: {' -> '.join(base_classes)}"
|
# err_msg += f"\nBase classes: {' -> '.join(base_classes)}"
|
||||||
self.io.tool_error(err_msg)
|
self.io.tool_error(err_msg)
|
||||||
retry_delay *= 2
|
retry_delay *= 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue