diff options
author | Philipp Hagemeister <[email protected]> | 2012-11-27 18:55:35 +0100 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2012-11-27 18:55:35 +0100 |
commit | b514df2034a7291971427588977dd612c4b5581f (patch) | |
tree | 7c7a8ac904183ac254141111e471ed5fc102cdef /youtube_dl/utils.py | |
parent | 0969bdd3053fc95c5f545caabdbc77628afec4b5 (diff) | |
download | youtube-dl-b514df2034a7291971427588977dd612c4b5581f.tar.gz youtube-dl-b514df2034a7291971427588977dd612c4b5581f.zip |
Clean up with the help of pep8
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 45582ca11..68a6fae1b 100644 --- a/youtube_dl/utils.py +++ b/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]:] |