Skip to content

Commit 007661b

Browse files
fixed flake8 error
1 parent 1f1689c commit 007661b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

song_scraper_GUI/findMyTune.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ def helpFrame(self):
9494
for i in range(1, 9):
9595
Label(self.help_window, wraplength=500,
9696
justify="left", font=("", 12),
97-
text=str(i)+". "+lines[i]).pack(anchor=W, pady=2, padx=10)
97+
text=str(i) + ". " + lines[i]).pack(anchor=W, pady=2, padx=10)
9898
Label(self.help_window, font=("Helvetica 16 underline"),
9999
text="NOTE").pack(anchor=W, padx=10, pady=10)
100100
for i in range(8, 11):
101101
Label(self.help_window, wraplength=500,
102102
justify="left", font=("", 12),
103-
text=str(i-7)+". "+lines[i]).pack(anchor=W, pady=2, padx=10)
103+
text=str(i - 7) + ". " + lines[i]).pack(anchor=W, pady=2, padx=10)
104104

105105
self.help_window.protocol("WM_DELETE_WINDOW", self.close_window)
106106

@@ -147,7 +147,7 @@ def searchSong(self):
147147
self.results.pack(pady=10, expand=1, fill=BOTH)
148148
for i in range(len(self.songlist)):
149149
self.results.insert(parent='', index='end', iid=i, text='',
150-
values=(str(i+1),
150+
values=(str(i + 1),
151151
self.songlist[i]['title'],
152152
self.songlist[i]['duration']))
153153

@@ -181,7 +181,7 @@ def downloadSong(self):
181181
filename = [f for f in os.listdir() if f.endswith('.mp3')]
182182
if(filename):
183183
# rename file and save in download folder
184-
os.rename(filename[0], 'downloads/'+filename[0][:-14]+".mp3")
184+
os.rename(filename[0], 'downloads/' + filename[0][:-14] + ".mp3")
185185
tkinter.messagebox.showinfo(
186186
'Song Downloaded Successfully',
187187
"Your song is downloaded.")

0 commit comments

Comments
 (0)