Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Commit 8687985

Browse files
Merge pull request #570 from dzaytsev91/removed-useless-imports
removed unused imports and variables
2 parents 7f042db + 2606fed commit 8687985

File tree

9 files changed

+4
-10
lines changed

9 files changed

+4
-10
lines changed

‎Scripts/Bots/Torrent-Search-Bot/bot.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def unknown(update, context):
2727
context.bot.send_message(chat_id=update.effective_chat.id, text="Sorry, I didn't understand that command.😔")
2828

2929
def quote(update,context):
30-
chat_id=update.message.chat_id
30+
update.message.chat_id
3131
if update.message:
3232

3333
query = update.message.text

‎Scripts/Bots/Torrent-Search-Bot/piratebay.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import requests
22
import json
3-
import urllib.request,urllib.parse
43
from scrapmagnet import scrapmag
54

65
def pirate(search):

‎Scripts/Bots/Twitter_bot/Twitter_bot.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class MyStreamer(TwythonStreamer):
55
@staticmethod
66
def on_success(data):
77
if 'text' in data:
8-
a=data['text'].lower()
8+
data['text'].lower()
99
username=data['user']['screen_name']
1010
id=data['id']
1111
st.create_favorite(id=id)

‎Scripts/Miscellaneous/Connect4Game/connect4game.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,5 +175,5 @@ def draw_board(board):
175175
if game_over:
176176
pygame.time.wait(3000)
177177

178-
except IndexErrorase:
178+
except IndexError:
179179
print('Game closed')

‎Scripts/Miscellaneous/PyOrganiser/main.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ def load(self):
130130
self.changeProgress()
131131
except Exception as e:
132132
print(e)
133-
pass
134133

135134
def save(self):
136135
with open('data.db', 'w') as f:

‎Scripts/Web_Scrappers/Instagram_Metadata_Scrapper/scrapper.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def get_metadata(username):
3535
}
3636
return {"error" : "problem getting the data , please try again"}
3737

38-
except Exceptionas_unused:
38+
except Exception:
3939
return {"error": "internal error"}
4040

4141
if __name__ == '__main__':

‎Scripts/Web_Scrappers/LeetCode_Scraper/leet_code_scraper.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class InvalidCodeException(Exception):
1515
"""
1616
Invalid problem code
1717
"""
18-
pass
1918

2019

2120
def parse_problem_statement(problem_code: str):

‎Scripts/Web_Scrappers/PlayStoreReviewScrapper/main.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def getPlaystoreReviews(app_id):
3737
python_button.click()
3838
except IndexError:
3939
elem.send_keys(Keys.PAGE_UP)
40-
pass
4140

4241

4342
if((no_of_pagedowns - 1) % 25 == 0):

‎Scripts/Web_Scrappers/cricket_scrapper/crick_info.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import io
22
from bs4 import BeautifulSoup
33
import urllib.request as ulibr
4-
import urllib.parse as ulibp
5-
import urllib.error as ulibe
64

75

86

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /