First, format with black.

This commit is contained in:
funilrys 2020-05-27 21:59:34 +02:00
parent 3e06d4b8b5
commit a2008b78f9
No known key found for this signature in database
GPG Key ID: 0D8BFEF5515C00C6
2 changed files with 5 additions and 4 deletions

View File

@ -1743,9 +1743,7 @@ class TestIsValidDomainFormat(BaseStdout):
self.assertTrue(expected in output)
def test_invalid_domain(self):
expected = (
"Do not include www.domain.com or http(s)://domain.com. Try again."
)
expected = "Do not include www.domain.com or http(s)://domain.com. Try again."
for invalid_domain in [
"www.subdomain.domain",

View File

@ -80,7 +80,10 @@ def main():
source_rows += t.substitute(this_row) + "\n"
with open(
os.path.join(data[key]["location"], README_FILENAME), "wt", encoding="utf-8", newline="\n"
os.path.join(data[key]["location"], README_FILENAME),
"wt",
encoding="utf-8",
newline="\n",
) as out:
for line in open(README_TEMPLATE, encoding="utf-8", newline="\n"):
line = line.replace(