mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-06-28 16:45:46 +02:00
Make the template expression more concise.
This commit is contained in:
parent
797507de66
commit
8fbd424850
|
@ -27,7 +27,9 @@ Python3 = sys.version_info >= (3,0)
|
|||
|
||||
def main():
|
||||
|
||||
s = Template('${description} | [Readme](https://github.com/StevenBlack/hosts/blob/master/${location}readme.md) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/${location}hosts) | [link](https://raw.githubusercontent.com/StevenBlack/hosts/master/${location}hosts.zip) | ${fmtentries}')
|
||||
master = "https://github.com/StevenBlack/hosts/blob/master/"
|
||||
raw = "https://raw.githubusercontent.com/StevenBlack/hosts/master/"
|
||||
s = Template('${description} | [Readme](${master}${location}readme.md) | [link](${raw}${location}hosts) | [link](${raw}${location}hosts.zip) | ${fmtentries}')
|
||||
|
||||
with open(README_DATA_FILENAME, 'r') as f:
|
||||
data = json.load(f)
|
||||
|
|
Loading…
Reference in New Issue
Block a user