From ba40f58ecc36206608f92b58111a1fd2b2bc85f6 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 24 Dec 2020 09:35:33 -0800 Subject: [PATCH] Remove encoding cookie from Python source files Unnecessary since dropping Python 2. Python now decodes files as utf-8 by default. --- docs/html/conf.py | 2 -- src/pip/_internal/commands/wheel.py | 2 -- tests/functional/test_install_wheel.py | 2 -- tests/lib/path.py | 1 - tests/unit/test_compat.py | 2 -- tests/unit/test_utils.py | 2 -- tests/unit/test_utils_subprocess.py | 1 - tests/unit/test_wheel.py | 2 -- 8 files changed, 14 deletions(-) diff --git a/docs/html/conf.py b/docs/html/conf.py index 1f3131ce3..9e65cbe7a 100644 --- a/docs/html/conf.py +++ b/docs/html/conf.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# # pip documentation build configuration file, created by # sphinx-quickstart on Tue Apr 22 22:08:49 2008 # diff --git a/src/pip/_internal/commands/wheel.py b/src/pip/_internal/commands/wheel.py index f9be31096..13dad544c 100644 --- a/src/pip/_internal/commands/wheel.py +++ b/src/pip/_internal/commands/wheel.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import logging import os import shutil diff --git a/tests/functional/test_install_wheel.py b/tests/functional/test_install_wheel.py index 177e86db3..9bf965625 100644 --- a/tests/functional/test_install_wheel.py +++ b/tests/functional/test_install_wheel.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import csv import distutils import glob diff --git a/tests/lib/path.py b/tests/lib/path.py index 2a9e29d8c..a9dc29ad7 100644 --- a/tests/lib/path.py +++ b/tests/lib/path.py @@ -1,5 +1,4 @@ # flake8: noqa -# -*- coding: utf-8 -*- # Author: Aziz Köksal import glob import os diff --git a/tests/unit/test_compat.py b/tests/unit/test_compat.py index 9411bad0a..cc024b570 100644 --- a/tests/unit/test_compat.py +++ b/tests/unit/test_compat.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import locale import os import sys diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 6ed479ae8..57434669e 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ util tests diff --git a/tests/unit/test_utils_subprocess.py b/tests/unit/test_utils_subprocess.py index c8ac7b817..fd73878c1 100644 --- a/tests/unit/test_utils_subprocess.py +++ b/tests/unit/test_utils_subprocess.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import locale import sys from logging import DEBUG, ERROR, INFO, WARNING diff --git a/tests/unit/test_wheel.py b/tests/unit/test_wheel.py index 6e7adc2a5..0f7a3c074 100644 --- a/tests/unit/test_wheel.py +++ b/tests/unit/test_wheel.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """Tests for wheel binary packages and .dist-info.""" import csv import logging