pep8: Fix object comparisons

This commit is contained in:
Laurent Bachelier 2014-10-11 01:46:25 +02:00
commit 4f897a8675
4 changed files with 4 additions and 4 deletions

View file

@ -95,7 +95,7 @@ class MediaPlayer(object):
Play media.url with the media player.
"""
# if flag play_proxy...
if hasattr(media, '_play_proxy') and media._play_proxy == True:
if hasattr(media, '_play_proxy') and media._play_proxy is True:
# use urllib2 to handle redirect and cookies
self._play_proxy(media, player_name, args)
return None