This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 8c7ea7b linting
8c7ea7b is described below
commit 8c7ea7b2f5d72b3377322d8ba42621a5f03256ed
Author: Daniel Gruno <[email protected]>
AuthorDate: Tue Aug 25 22:37:21 2020 +0200
linting
---
tools/setup.py | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/tools/setup.py b/tools/setup.py
index 4798ff4..ef39ed7 100755
--- a/tools/setup.py
+++ b/tools/setup.py
@@ -54,7 +54,10 @@ def create_indices():
)
sys.exit(0)
else:
- print("Error: Existing ElasticSearch indices with prefix '%s'
already exist!" % dbname)
+ print(
+ "Error: Existing ElasticSearch indices with prefix '%s'
already exist!"
+ % dbname
+ )
sys.exit(-1)
print(f"Creating indices {dbname}-*...")
@@ -199,12 +202,14 @@ if args.generator:
if args.generator in supported_generators:
genname = args.generator
else:
- sys.stderr.write("Invalid generator specified. Must be one of: " + ",
".join(supported_generators) + "\n")
+ sys.stderr.write(
+ "Invalid generator specified. Must be one of: "
+ + ", ".join(supported_generators)
+ + "\n"
+ )
sys.exit(-1)
-hostname = input(
- "What is the hostname of the ElasticSearch server? [localhost]: "
-)
+hostname = input("What is the hostname of the ElasticSearch server?
[localhost]: ")
if not hostname:
hostname = "localhost"
@@ -229,9 +234,7 @@ mlserver = input(
if not mlserver:
mlserver = "localhost"
-mldom = input(
- "Which domains would you accept mail to from web-replies? [*]: "
-)
+mldom = input("Which domains would you accept mail to from web-replies? [*]: ")
if not mldom:
mldom = "*"