mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
move imports into method
This commit is contained in:
parent
7b336c9eb4
commit
8172b7be4b
1 changed files with 3 additions and 3 deletions
|
@ -4,8 +4,6 @@ import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import pypandoc
|
import pypandoc
|
||||||
from playwright.sync_api import Error as PlaywrightError
|
|
||||||
from playwright.sync_api import TimeoutError as PlaywrightTimeoutError
|
|
||||||
|
|
||||||
from aider import __version__, urls, utils
|
from aider import __version__, urls, utils
|
||||||
from aider.dump import dump # noqa: F401
|
from aider.dump import dump # noqa: F401
|
||||||
|
@ -133,7 +131,9 @@ class Scraper:
|
||||||
|
|
||||||
# Internals...
|
# Internals...
|
||||||
def scrape_with_playwright(self, url):
|
def scrape_with_playwright(self, url):
|
||||||
import playwright
|
import playwright # noqa: F401
|
||||||
|
from playwright.sync_api import Error as PlaywrightError
|
||||||
|
from playwright.sync_api import TimeoutError as PlaywrightTimeoutError
|
||||||
from playwright.sync_api import sync_playwright
|
from playwright.sync_api import sync_playwright
|
||||||
|
|
||||||
with sync_playwright() as p:
|
with sync_playwright() as p:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue