Skip to content
This repository was archived by the owner on Sep 29, 2021. It is now read-only.

Commit eec1b1e

Browse files
author
MoveAngel
committed
pylint: auto fixes
Signed-off-by: MoveAngel <[email protected]>
1 parent 6b6db2e commit eec1b1e

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

userbot/modules/afk.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,8 @@
1111

1212
from telethon.events import StopPropagation
1313

14-
from userbot import (
15-
AFKREASON,
16-
COUNT_MSG,
17-
CMD_HELP,
18-
ISAFK,
19-
BOTLOG,
20-
BOTLOG_CHATID,
21-
USERS,
22-
PM_AUTO_BAN) # pylint: disable=unused-imports
23-
14+
from userbot import PM_AUTO_BAN # pylint: disable=unused-imports
15+
from userbot import AFKREASON, BOTLOG, BOTLOG_CHATID, CMD_HELP, COUNT_MSG, ISAFK, USERS
2416
from userbot.events import register
2517

2618
# ========================= CONSTANTS ============================

userbot/modules/scrapers.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
from urbandict import define
2929
from wikipedia import summary
3030
from wikipedia.exceptions import DisambiguationError, PageError
31-
from youtube_search import YoutubeSearch
3231
from youtube_dl import YoutubeDL
3332
from youtube_dl.utils import (
3433
ContentTooShortError,
@@ -40,7 +39,8 @@
4039
UnavailableVideoError,
4140
XAttrMetadataError,
4241
)
43-
from asyncio import sleep
42+
from youtube_search import YoutubeSearch
43+
4444
from userbot import BOTLOG, BOTLOG_CHATID, CMD_HELP, TEMP_DOWNLOAD_DIRECTORY, WOLFRAM_ID
4545
from userbot.events import register
4646
from userbot.utils import chrome, googleimagesdownload, progress
@@ -78,15 +78,14 @@ async def carbon_api(e):
7878
driver = await chrome()
7979
driver.get(url)
8080
await e.edit("`Processing..\n50%`")
81-
download_path = './'
81+
download_path = "./"
8282
driver.command_executor._commands["send_command"] = (
83-
"POST", '/session/$sessionId/chromium/send_command')
83+
"POST",
84+
"/session/$sessionId/chromium/send_command",
85+
)
8486
params = {
85-
'cmd': 'Page.setDownloadBehavior',
86-
'params': {
87-
'behavior': 'allow',
88-
'downloadPath': download_path
89-
}
87+
"cmd": "Page.setDownloadBehavior",
88+
"params": {"behavior": "allow", "downloadPath": download_path},
9089
}
9190
driver.execute("send_command", params)
9291
driver.find_element_by_xpath("//button[@id='export-menu']").click()

0 commit comments

Comments
 (0)