comparison sat/plugins/plugin_blog_import.py @ 2765:378188abe941

misc: replaced all "dummy" by the more conventional and readable "__" ("_" being used for gettext)
author Goffi <goffi@goffi.org>
date Fri, 11 Jan 2019 11:13:15 +0100
parents 56f94936df1e
children 003b8b4b56a7
comparison
equal deleted inserted replaced
2764:92af49cde255 2765:378188abe941
304 try: 304 try:
305 yield web_client.downloadPage(url.encode("utf-8"), tmp_file) 305 yield web_client.downloadPage(url.encode("utf-8"), tmp_file)
306 filename = filename.replace( 306 filename = filename.replace(
307 u"%", u"_" 307 u"%", u"_"
308 ) # FIXME: tmp workaround for a bug in prosody http upload 308 ) # FIXME: tmp workaround for a bug in prosody http upload
309 dummy, download_d = yield self._u.upload( 309 __, download_d = yield self._u.upload(
310 client, tmp_file, filename, options=upload_options 310 client, tmp_file, filename, options=upload_options
311 ) 311 )
312 download_url = yield download_d 312 download_url = yield download_d
313 except Exception as e: 313 except Exception as e:
314 log.warning( 314 log.warning(