0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-16 01:25:06 +00:00

Clean up with the help of pep8

This commit is contained in:
Philipp Hagemeister 2012-11-27 18:55:35 +01:00
parent 0969bdd305
commit b514df2034

View file

@ -126,8 +126,10 @@ def find_startpos(self, x):
handle_decl = handle_pi = unknown_decl = find_startpos
def get_result(self):
if self.result == None: return None
if len(self.result) != 3: return None
if self.result is None:
return None
if len(self.result) != 3:
return None
lines = self.html.split('\n')
lines = lines[self.result[1][0]-1:self.result[2][0]]
lines[0] = lines[0][self.result[1][1]:]