Commit 856b5c21 authored by Dan Pascu's avatar Dan Pascu

PEP-8 compliance

parent 9b463bef
...@@ -8,7 +8,7 @@ import sys ...@@ -8,7 +8,7 @@ import sys
script = globals().get('__file__', sys.argv[0]) script = globals().get('__file__', sys.argv[0])
script_dir = os.path.dirname(os.path.realpath(script)) script_dir = os.path.dirname(os.path.realpath(script))
parent_dir = os.path.dirname(script_dir) parent_dir = os.path.dirname(script_dir)
if os.path.basename(script_dir)=='bin' and os.path.exists(os.path.join(parent_dir, 'blink', '__init__.py')): if os.path.basename(script_dir) == 'bin' and os.path.exists(os.path.join(parent_dir, 'blink', '__init__.py')):
# Insert the parent path just before the existing script's path. We need # Insert the parent path just before the existing script's path. We need
# to do this in order to work with debuggers which insert their own paths # to do this in order to work with debuggers which insert their own paths
# at the beginning. The script's path is the last Python itself inserted # at the beginning. The script's path is the last Python itself inserted
......
...@@ -3784,6 +3784,7 @@ class BlinkFileTransfer(object): ...@@ -3784,6 +3784,7 @@ class BlinkFileTransfer(object):
def _NH_FileTransferHandlerProgress(self, notification): def _NH_FileTransferHandlerProgress(self, notification):
notification.center.post_notification('BlinkFileTransferProgress', sender=self, data=NotificationData(bytes=notification.data.transferred_bytes, notification.center.post_notification('BlinkFileTransferProgress', sender=self, data=NotificationData(bytes=notification.data.transferred_bytes,
total_bytes=notification.data.total_bytes)) total_bytes=notification.data.total_bytes))
def _NH_FileTransferHandlerDidEnd(self, notification): def _NH_FileTransferHandlerDidEnd(self, notification):
if self.direction == 'incoming': if self.direction == 'incoming':
call_later(3, self.sip_session.end) call_later(3, self.sip_session.end)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment