Mercurial > libervia-web
changeset 1238:f55056bb67d4
replaced former use of "dummy" by "__"
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 29 Jan 2020 09:54:17 +0100 |
parents | 987595a254b0 |
children | f511f8fbbf8a |
files | libervia/pages/files/view/page_meta.py libervia/server/blog.py |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libervia/pages/files/view/page_meta.py Wed Jan 29 09:53:31 2020 +0100 +++ b/libervia/pages/files/view/page_meta.py Wed Jan 29 09:54:17 2020 +0100 @@ -22,7 +22,7 @@ self.getPathArgs(request, ["service", "*path"], min_args=2, service="jid", path="") -def cleanup(dummy, tmp_dir, dest_path): +def cleanup(__, tmp_dir, dest_path): try: os.unlink(dest_path) except OSError:
--- a/libervia/server/blog.py Wed Jan 29 09:53:31 2020 +0100 +++ b/libervia/server/blog.py Wed Jan 29 09:54:17 2020 +0100 @@ -357,7 +357,7 @@ item = items[0] # assume there's only one item def gotMetadata(result): - dummy, rsm_metadata = result + __, rsm_metadata = result try: metadata["rsm_count"] = rsm_metadata["rsm_count"] except KeyError: @@ -669,7 +669,7 @@ dlist_d = defer.DeferredList(d_list) dlist_d.addCallback( - lambda dummy: self._renderHTML(items, metadata, options, request, pub_jid) + lambda __: self._renderHTML(items, metadata, options, request, pub_jid) ) def _renderHTML(self, items, metadata, options, request, pub_jid):