From f9e3fdfaeed4f50542d0f3441851af9aeff71534 Mon Sep 17 00:00:00 2001 From: meejah Date: Thu, 13 Feb 2020 06:21:33 -0700 Subject: [PATCH] use % instead of format --- src/allmydata/web/filenode.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/allmydata/web/filenode.py b/src/allmydata/web/filenode.py index f4dfa0944..426a0a45e 100644 --- a/src/allmydata/web/filenode.py +++ b/src/allmydata/web/filenode.py @@ -154,17 +154,13 @@ class FileNodeHandler(Resource, ReplaceMeMixin, object): if should_create_intermediate_directories(req): return ErrorPage( http.CONFLICT, - u"Cannot create directory {}, because its " - u"parent is a file, not a directory".format( - quote_output(name, encoding='utf-8') - ), + u"Cannot create directory %s, because its parent is a file, " + u"not a directory" % quote_output(name, encoding='utf-8'), "no details" ) return ErrorPage( http.BAD_REQUEST, - u"Files have no children named {}".format( - quote_output(name, encoding='utf-8'), - ), + u"Files have no children named %s" % quote_output(name, encoding='utf-8'), "no details", )