Skip to content

Commit 1d373fb

Browse files
committed
remove python2 file encodings
1 parent d74901b commit 1d373fb

File tree

248 files changed

+1
-286
lines changed

Some content is hidden

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

248 files changed

+1
-286
lines changed

asv_bench/benchmarks/offset.py

-1
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

doc/source/conf.py

-1
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

-1
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/tslibs/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# flake8: noqa
32

43
from .conversion import normalize_date, localize_pydatetime

pandas/core/accessor.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
43
accessor.py contains base classes for implementing accessor properties

pandas/core/arrays/_ranges.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
Helper functions to generate range-like data for DatetimeArray
43
(and possibly TimedeltaArray/PeriodArray)

pandas/core/arrays/datetimelike.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from datetime import datetime, timedelta
32
import operator
43
from typing import Any, Sequence, Tuple, Type, Union

pandas/core/arrays/datetimes.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from datetime import datetime, time, timedelta
32
import textwrap
43
from typing import Union

pandas/core/arrays/period.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from datetime import timedelta
32
import operator
43
from typing import Any, Callable, Optional, Sequence, Union

pandas/core/arrays/timedeltas.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from datetime import timedelta
32
import textwrap
43
import warnings

pandas/core/indexes/datetimelike.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
Base and utility classes for tseries type pandas objects.
43
"""

pandas/core/internals/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from .blocks import ( # noqa:F401
32
_block_shape, # io.pytables
43
_safe_reshape, # io.packers

pandas/core/internals/blocks.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from datetime import date, datetime, timedelta
32
import functools
43
import inspect

pandas/core/internals/concat.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# TODO: Needs a better name; too many modules are already called "concat"
32
from collections import defaultdict
43
import copy

pandas/core/internals/managers.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from collections import defaultdict
32
from functools import partial
43
import itertools

pandas/core/strings.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import codecs
32
import re
43
import textwrap

pandas/io/formats/csvs.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
Module for formatting output data into CSV files.
43
"""

pandas/io/formats/format.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
Internal module for formatting output data in csv, html,
43
and latex files. This module also applies to display formatting.

pandas/io/formats/html.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
Module for formatting output data in HTML.
43
"""

pandas/io/formats/latex.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
Module for formatting output data in Latex.
43
"""

pandas/io/sql.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
Collection of query wrappers / abstractions to both facilitate data
43
retrieval and to reduce dependency on DB-specific API.

pandas/tests/api/test_api.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import pandas as pd
32
from pandas import api
43
from pandas.util import testing as tm

pandas/tests/api/test_types.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from pandas.api import types
32
from pandas.util import testing as tm
43

pandas/tests/arithmetic/conftest.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import numpy as np
32
import pytest
43

pandas/tests/arithmetic/test_datetime64.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Arithmetic tests for DataFrame/Series/Index/Array classes that should
32
# behave identically.
43
# Specifically for datetime64 and datetime64tz dtypes

pandas/tests/arithmetic/test_numeric.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Arithmetc tests for DataFrame/Series/Index/Array classes that should
32
# behave identically.
43
# Specifically for numeric dtypes

pandas/tests/arithmetic/test_object.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Arithmetc tests for DataFrame/Series/Index/Array classes that should
32
# behave identically.
43
# Specifically for object dtype

pandas/tests/arithmetic/test_period.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Arithmetc tests for DataFrame/Series/Index/Array classes that should
32
# behave identically.
43
# Specifically for Period dtype

pandas/tests/arithmetic/test_timedelta64.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Arithmetc tests for DataFrame/Series/Index/Array classes that should
32
# behave identically.
43
from datetime import datetime, timedelta

pandas/tests/arrays/categorical/common.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
from pandas import Categorical
43

pandas/tests/arrays/categorical/test_analytics.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import sys
43

pandas/tests/arrays/categorical/test_api.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import numpy as np
43
import pytest

pandas/tests/arrays/categorical/test_constructors.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
from datetime import datetime
43

pandas/tests/arrays/categorical/test_dtypes.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import numpy as np
32
import pytest
43

pandas/tests/arrays/categorical/test_indexing.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import numpy as np
43
import pytest

pandas/tests/arrays/categorical/test_missing.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import collections
32

43
import numpy as np

pandas/tests/arrays/categorical/test_operators.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import operator
32

43
import numpy as np

pandas/tests/arrays/categorical/test_repr.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import numpy as np
43

pandas/tests/arrays/categorical/test_sorting.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import numpy as np
43
import pytest

pandas/tests/arrays/categorical/test_subclass.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
from pandas import Categorical
43
import pandas.util.testing as tm

pandas/tests/arrays/categorical/test_warnings.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import pytest
43

pandas/tests/arrays/interval/test_interval.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import numpy as np
32
import pytest
43

pandas/tests/arrays/test_datetimelike.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import numpy as np
32
import pytest
43

pandas/tests/arrays/test_datetimes.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
Tests for DatetimeArray
43
"""

pandas/tests/arrays/test_integer.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import numpy as np
32
import pytest
43

pandas/tests/arrays/test_timedeltas.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import numpy as np
43
import pytest

pandas/tests/config/test_config.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import warnings
32

43
import pytest

pandas/tests/config/test_localization.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import codecs
32
import locale
43
import os

pandas/tests/dtypes/cast/test_construct_from_scalar.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
from pandas.core.dtypes.cast import construct_1d_arraylike_from_scalar
43
from pandas.core.dtypes.dtypes import CategoricalDtype

pandas/tests/dtypes/cast/test_construct_ndarray.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import numpy as np
43
import pytest

pandas/tests/dtypes/cast/test_construct_object_arr.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import pytest
43

pandas/tests/dtypes/cast/test_convert_objects.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import numpy as np
43
import pytest

pandas/tests/dtypes/cast/test_downcast.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import numpy as np
43
import pytest

pandas/tests/dtypes/cast/test_find_common_type.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import numpy as np
43
import pytest

pandas/tests/dtypes/cast/test_infer_datetimelike.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import numpy as np
43
import pytest

pandas/tests/dtypes/cast/test_infer_dtype.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
from datetime import date, datetime, timedelta
43

pandas/tests/dtypes/cast/test_upcast.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import numpy as np
43
import pytest

pandas/tests/dtypes/test_common.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import numpy as np
43
import pytest

pandas/tests/dtypes/test_concat.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import pytest
43

pandas/tests/dtypes/test_dtypes.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import re
32

43
import numpy as np

pandas/tests/dtypes/test_generic.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
from warnings import catch_warnings
43

pandas/tests/dtypes/test_inference.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
"""
43
These the test the public routines exposed in types/common.py

pandas/tests/dtypes/test_missing.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
from datetime import datetime
43
from decimal import Decimal

pandas/tests/extension/test_external_block.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import numpy as np
32
import pytest
43

pandas/tests/frame/test_alter_axes.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
from datetime import datetime, timedelta
43
import inspect

pandas/tests/frame/test_analytics.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
from datetime import timedelta
43
import operator

pandas/tests/frame/test_api.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from copy import deepcopy
32
import pydoc
43

pandas/tests/frame/test_apply.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
from collections import OrderedDict
43
from datetime import datetime

pandas/tests/frame/test_arithmetic.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from collections import deque
32
from datetime import datetime
43
import operator

pandas/tests/frame/test_axis_select_reindex.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
from datetime import datetime
43

pandas/tests/frame/test_block_internals.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
from datetime import datetime, timedelta
43
from io import StringIO

pandas/tests/frame/test_combine_concat.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
from datetime import datetime
43

pandas/tests/frame/test_constructors.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
from collections import OrderedDict, abc
43
from datetime import datetime, timedelta

pandas/tests/frame/test_convert_to.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
from collections import OrderedDict, abc, defaultdict
43
from datetime import datetime

pandas/tests/frame/test_dtypes.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from collections import OrderedDict
42
from datetime import timedelta
53

pandas/tests/frame/test_duplicates.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import numpy as np
43
import pytest

pandas/tests/frame/test_indexing.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
from datetime import date, datetime, time, timedelta
43
from warnings import catch_warnings, simplefilter

pandas/tests/frame/test_join.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import numpy as np
43
import pytest

pandas/tests/frame/test_missing.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32
import datetime
43

0 commit comments

Comments
 (0)