Review of Notes indentation
authorfunilrys <redacted>
Fri, 2 Mar 2018 21:53:15 +0000 (22:53 +0100)
committerfunilrys <redacted>
Fri, 2 Mar 2018 21:53:15 +0000 (22:53 +0100)
This patch fix : https://github.com/StevenBlack/hosts/pull/520#discussion_r171971481
+ It also fix (forgoten coma) : https://github.com/StevenBlack/hosts/pull/520#discussion_r171971574

updateHostsFile.py

index 3231e954e50ce5d442585d5a04de2106a8be778d..a350ac08b2c07ac31f90d3d466e573da92cbe955 100644 (file)
@@ -1147,12 +1147,12 @@ def domain_to_idna(line):
     Notes
     -----
     - This function encode only the domain to `idna` format because in
-        most cases the encoding issue is due to a domain which looks like
+        most cases, the encoding issue is due to a domain which looks like
         `b'\xc9\xa2oogle.com'.decode('idna')`.
     - About the splitting:
         We split because we only want to encode the domain and not the full
-            line which may cause some issue. Keep in mind that we split but we
-            still concatenate once we encoded the domain.
+        line which may cause some issue. Keep in mind that we split but we
+        still concatenate once we encoded the domain.
 
         - The following split the prefix `0.0.0.0` or `127.0.0.1` of a line.
         - The following also split the trailing comment of a given line.
git clone https://git.99rst.org/PROJECT