mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-10-02 06:15:44 +01:00
Deletion of python 2 reference in the readme_template.md
This patch is related to https://github.com/StevenBlack/hosts/issues/729
This commit is contained in:
+2
-10
@@ -67,17 +67,13 @@ Data for extensions is stored in the [`extensions`](https://github.com/StevenBla
|
||||
|
||||
pip3 install --user -r requirements.txt
|
||||
|
||||
**Note** if you are using Python 2, please install the dependencies with:
|
||||
|
||||
pip2 install --user -r requirements_python2.txt
|
||||
|
||||
**Note** we recommend the `--user` flag which installs the required dependencies at the user level. More information about it can be found on pip [documentation](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=--user#cmdoption-user).
|
||||
|
||||
To run unit tests, in the top level directory, just run:
|
||||
|
||||
python testUpdateHostsFile.py
|
||||
python3 testUpdateHostsFile.py
|
||||
|
||||
The `updateHostsFile.py` script, which is Python 2.7 and Python 3-compatible,
|
||||
The `updateHostsFile.py` script, which is only Python 3-compatible,
|
||||
will generate a unified hosts file based on the sources in the local `data/`
|
||||
subfolder. The script will prompt you whether it should fetch updated
|
||||
versions (from locations defined by the `update.json` text file in each
|
||||
@@ -89,10 +85,6 @@ source's folder). Otherwise, it will use the `hosts` file that's already there.
|
||||
|
||||
python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
|
||||
#### Using Python 2.7:
|
||||
|
||||
python updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3]
|
||||
|
||||
#### Command line options:
|
||||
|
||||
`--help`, or `-h`: display help.
|
||||
|
||||
Reference in New Issue
Block a user