File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7676 import socket
7777
7878 hostname , _ , ips = socket .gethostbyname_ex (socket .gethostname ())
79- INTERNAL_IPS += ["." .join (ip .split ("." )[:- 1 ] + [ "1" ]) for ip in ips ]
79+ INTERNAL_IPS += ["." .join ([ * ip .split ("." )[:- 1 ], "1" ]) for ip in ips ]
8080 with contextlib .suppress (socket .gaierror ):
8181 _ , _ , ips = socket .gethostbyname_ex ("node" ) # type: ignore[assignment]
8282 INTERNAL_IPS .extend (ips )
Original file line number Diff line number Diff line change 11"""This module handles the logic behind the constitution.
22
3- This contains methods to read the constitution as a dict, check which files in
4- a diff contain constitutional amendments, and automatically update the
5- constitution for changes which edit files included in the constitution without
6- resulting in constitutional amendments
3+ This contains functions to read the constitution as json, check which files in a diff
4+ contain constitutional amendments, and automatically update the constitution for changes
5+ that moved constitutionally protected sections without editing them
76"""
87
98import json
You can’t perform that action at this time.
0 commit comments