Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit aa4a786

Browse files
committed
Review of Notes indentation
This patch fix : StevenBlack/hosts#520 (comment) + It also fix (forgoten coma) : StevenBlack/hosts#520 (comment)
1 parent 62fbc8e commit aa4a786

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

updateHostsFile.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1147,12 +1147,12 @@ def domain_to_idna(line):
11471147
Notes
11481148
-----
11491149
- This function encode only the domain to `idna` format because in
1150-
most cases the encoding issue is due to a domain which looks like
1150+
most cases, the encoding issue is due to a domain which looks like
11511151
`b'\xc9\xa2oogle.com'.decode('idna')`.
11521152
- About the splitting:
11531153
We split because we only want to encode the domain and not the full
1154-
line which may cause some issue. Keep in mind that we split but we
1155-
still concatenate once we encoded the domain.
1154+
line which may cause some issue. Keep in mind that we split but we
1155+
still concatenate once we encoded the domain.
11561156
11571157
- The following split the prefix `0.0.0.0` or `127.0.0.1` of a line.
11581158
- The following also split the trailing comment of a given line.

0 commit comments

Comments
 (0)