Some manual style fixes

This commit is contained in:
Laurent Bachelier 2013-03-15 22:31:33 +01:00
commit fbe0fb8d52
10 changed files with 18 additions and 14 deletions

View file

@ -60,7 +60,7 @@ class MasstransitHildon():
status = event.get_status()
if status == conic.STATUS_CONNECTED:
self.connected = True
if self.touch_selector_entry_filled == False:
if not self.touch_selector_entry_filled:
debug("connected, now fill")
self.fill_touch_selector_entry()
if self.refresh_in_progress:

View file

@ -17,7 +17,8 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
import os,codecs
import os
import codecs
from PyQt4.QtCore import SIGNAL, Qt, QStringList
from PyQt4.QtGui import QApplication, QCompleter

View file

@ -325,7 +325,7 @@ class Weboob(object):
if len(_backends) > 0:
try:
backends = [self.backend_instances[_backends]]
except (ValueError,KeyError):
except (ValueError, KeyError):
backends = []
elif isinstance(_backends, (list, tuple, set)):
backends = []
@ -333,7 +333,7 @@ class Weboob(object):
if isinstance(backend, basestring):
try:
backends.append(self.backend_instances[backend])
except (ValueError,KeyError):
except (ValueError, KeyError):
pass
else:
backends.append(backend)

View file

@ -112,7 +112,7 @@ class MediaPlayer(object):
media_url = media.url
try:
player_url = media.swf_player
if media.swf_player:
if media.swf_player:
rtmp = 'rtmpdump -r %s --swfVfy %s' % (media_url, player_url)
else:
rtmp = 'rtmpdump -r %s' % media_url
@ -123,7 +123,7 @@ class MediaPlayer(object):
rtmp += ' --quiet'
if args is None :
if args is None:
for (binary, stdin_args) in PLAYERS:
if binary == player_name:
args = stdin_args
@ -139,7 +139,7 @@ class MediaPlayer(object):
p1 = Popen(rtmp.split(), stdout=PIPE)
Popen(player_name + args, stdin=p1.stdout, stderr=PIPE)
def _find_in_path(self,path, filename):
def _find_in_path(self, path, filename):
for i in path.split(':'):
if os.path.exists('/'.join([i, filename])):
return True