Commit 34c5aa7e authored by Dan Pascu's avatar Dan Pascu

Fixed variable names

parent 4af20ca4
...@@ -3542,14 +3542,14 @@ class FileTransfer(object): ...@@ -3542,14 +3542,14 @@ class FileTransfer(object):
return self.__dict__['stream'] return self.__dict__['stream']
def _set_stream(self, value): def _set_stream(self, value):
old_session = self.__dict__.get('stream', None) old_stream = self.__dict__.get('stream', None)
new_session = self.__dict__['stream'] = value new_stream = self.__dict__['stream'] = value
if new_session != old_session: if new_stream != old_stream:
notification_center = NotificationCenter() notification_center = NotificationCenter()
if old_session is not None: if old_stream is not None:
notification_center.remove_observer(self, sender=old_session) notification_center.remove_observer(self, sender=old_stream)
if new_session is not None: if new_stream is not None:
notification_center.add_observer(self, sender=new_session) notification_center.add_observer(self, sender=new_stream)
stream = property(_get_stream, _set_stream) stream = property(_get_stream, _set_stream)
del _get_stream, _set_stream del _get_stream, _set_stream
......
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