comparison sat/plugins/plugin_comp_file_sharing.py @ 3701:6d298323eed2

plugin comp file sharing: don't use Deferred in return value
author Goffi <goffi@goffi.org>
date Fri, 05 Nov 2021 18:11:24 +0100
parents 02e5e2385a30
children 09f5ac48ffe3
comparison
equal deleted inserted replaced
3700:cfc06915de15 3701:6d298323eed2
542 ) 542 )
543 543
544 self._f.openFileWrite( 544 self._f.openFileWrite(
545 client, file_tmp_path, transfer_data, file_data, stream_object 545 client, file_tmp_path, transfer_data, file_data, stream_object
546 ) 546 )
547 return False, defer.succeed(True) 547 return False, True
548 548
549 @defer.inlineCallbacks 549 @defer.inlineCallbacks
550 def _retrieveFiles( 550 def _retrieveFiles(
551 self, client, session, content_data, content_name, file_data, file_elt 551 self, client, session, content_data, content_name, file_data, file_elt
552 ): 552 ):