Browse Source

Clean up with the help of pep8

master
Philipp Hagemeister 12 years ago
parent
commit
b514df2034
1 changed files with 4 additions and 2 deletions
  1. 6
      youtube_dl/utils.py

6
youtube_dl/utils.py

@ -126,8 +126,10 @@ class IDParser(HTMLParser.HTMLParser):
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]:]

Loading…
Cancel
Save