Skip to content

Commit 96dd2a9

Browse files
topper-123jreback
authored andcommitted
CLN: remove '# -*- coding: utf-8 -*-' pattern (#26197)
1 parent 671707b commit 96dd2a9

File tree

284 files changed

+5
-438
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

284 files changed

+5
-438
lines changed

asv_bench/benchmarks/offset.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import warnings
32
from datetime import datetime
43

ci/code_checks.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
126126
invgrep -r -E --include '*.py' "[[:space:]] pytest.raises" pandas/tests/
127127
RET=$(($RET + $?)) ; echo $MSG "DONE"
128128

129+
MSG='Check for python2-style file encodings' ; echo $MSG
130+
invgrep -R --include="*.py" --include="*.pyx" -E "# -\*- coding: utf-8 -\*-" pandas scripts
131+
RET=$(($RET + $?)) ; echo $MSG "DONE"
132+
129133
# Check for the following code in testing: `np.testing` and `np.array_equal`
130134
MSG='Check for invalid testing' ; echo $MSG
131135
invgrep -r -E --include '*.py' --exclude testing.py '(numpy|np)(\.testing|\.array_equal)' pandas/tests/

doc/source/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
#
32
# pandas documentation build configuration file, created by
43
#

pandas/_libs/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# flake8: noqa
32

43
from .tslibs import (

pandas/_libs/algos.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
import cython
42
from cython import Py_ssize_t
53

pandas/_libs/groupby.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
import cython
42
from cython import Py_ssize_t
53
from cython cimport floating

pandas/_libs/hashing.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Translated from the reference implementation
32
# at https://github.com/veorq/SipHash
43

pandas/_libs/hashtable.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
cimport cython
42

53
from cpython cimport (PyObject, Py_INCREF,

pandas/_libs/index.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from datetime import datetime, timedelta, date
32

43
import cython

pandas/_libs/indexing.pyx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
3-
41
cdef class _NDFrameIndexerBase:
52
"""
63
A base class for _NDFrameIndexer for fast instantiation and attribute

0 commit comments

Comments
 (0)