Skip to content

Commit

Permalink
Introduction of Black: The uncompromising Python code formatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
funilrys committed Jul 13, 2019
1 parent 5386cec commit 05dad7e
Show file tree
Hide file tree
Showing 4 changed files with 796 additions and 532 deletions.
132 changes: 81 additions & 51 deletions makeHosts.py
Expand Up @@ -54,59 +54,89 @@ def update_readme_file():


def main():
parser = argparse.ArgumentParser(description="Creates custom hosts "
"file from hosts stored in "
"data subfolders.")
parser = argparse.ArgumentParser(
description="Creates custom hosts "
"file from hosts stored in "
"data subfolders."
)
parser.parse_args()

update_hosts_file("-a", "-o",
"alternates/gambling",
"-e", "gambling")
update_hosts_file("-a", "-n", "-o",
"alternates/porn",
"-e", "porn")
update_hosts_file("-a", "-n", "-o",
"alternates/social",
"-e", "social")
update_hosts_file("-a", "-n", "-o",
"alternates/fakenews",
"-e", "fakenews")

update_hosts_file("-a", "-n", "-o",
"alternates/fakenews-gambling",
"-e", "fakenews", "gambling")
update_hosts_file("-a", "-n", "-o",
"alternates/fakenews-porn",
"-e", "fakenews", "porn")
update_hosts_file("-a", "-n", "-o",
"alternates/fakenews-social",
"-e", "fakenews", "social")
update_hosts_file("-a", "-n", "-o",
"alternates/gambling-porn",
"-e", "gambling", "porn")
update_hosts_file("-a", "-n", "-o",
"alternates/gambling-social",
"-e", "gambling", "social")
update_hosts_file("-a", "-n", "-o",
"alternates/porn-social",
"-e", "porn", "social")

update_hosts_file("-a", "-n", "-o",
"alternates/fakenews-gambling-porn",
"-e", "fakenews", "gambling", "porn")
update_hosts_file("-a", "-n", "-o",
"alternates/fakenews-gambling-social",
"-e", "fakenews", "gambling", "social")
update_hosts_file("-a", "-n", "-o",
"alternates/fakenews-porn-social",
"-e", "fakenews", "porn", "social")
update_hosts_file("-a", "-n", "-o",
"alternates/gambling-porn-social",
"-e", "gambling", "porn", "social")

update_hosts_file("-a", "-n", "-o",
"alternates/fakenews-gambling-porn-social",
"-e", "fakenews", "gambling", "porn", "social")
update_hosts_file("-a", "-o", "alternates/gambling", "-e", "gambling")
update_hosts_file("-a", "-n", "-o", "alternates/porn", "-e", "porn")
update_hosts_file("-a", "-n", "-o", "alternates/social", "-e", "social")
update_hosts_file("-a", "-n", "-o", "alternates/fakenews", "-e", "fakenews")

update_hosts_file(
"-a", "-n", "-o", "alternates/fakenews-gambling", "-e", "fakenews", "gambling"
)
update_hosts_file(
"-a", "-n", "-o", "alternates/fakenews-porn", "-e", "fakenews", "porn"
)
update_hosts_file(
"-a", "-n", "-o", "alternates/fakenews-social", "-e", "fakenews", "social"
)
update_hosts_file(
"-a", "-n", "-o", "alternates/gambling-porn", "-e", "gambling", "porn"
)
update_hosts_file(
"-a", "-n", "-o", "alternates/gambling-social", "-e", "gambling", "social"
)
update_hosts_file(
"-a", "-n", "-o", "alternates/porn-social", "-e", "porn", "social"
)

update_hosts_file(
"-a",
"-n",
"-o",
"alternates/fakenews-gambling-porn",
"-e",
"fakenews",
"gambling",
"porn",
)
update_hosts_file(
"-a",
"-n",
"-o",
"alternates/fakenews-gambling-social",
"-e",
"fakenews",
"gambling",
"social",
)
update_hosts_file(
"-a",
"-n",
"-o",
"alternates/fakenews-porn-social",
"-e",
"fakenews",
"porn",
"social",
)
update_hosts_file(
"-a",
"-n",
"-o",
"alternates/gambling-porn-social",
"-e",
"gambling",
"porn",
"social",
)

update_hosts_file(
"-a",
"-n",
"-o",
"alternates/fakenews-gambling-porn-social",
"-e",
"fakenews",
"gambling",
"porn",
"social",
)

update_hosts_file("-a", "-n")

Expand Down

0 comments on commit 05dad7e

Please sign in to comment.