Skip to content

Commit 9826572

Browse files
WillAydproost
authored andcommitted
Removed CParserError (pandas-dev#30036)
1 parent 21e2cd7 commit 9826572

File tree

3 files changed

+0
-24
lines changed

3 files changed

+0
-24
lines changed

pandas/_libs/parsers.pyx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@ from pandas.errors import (ParserError, DtypeWarning,
6363

6464
lzma = _import_lzma()
6565

66-
# Import CParserError as alias of ParserError for backwards compatibility.
67-
# Ultimately, we want to remove this import. See gh-12665 and gh-14479.
68-
CParserError = ParserError
69-
70-
7166
cdef:
7267
float64_t INF = <float64_t>np.inf
7368
float64_t NEGINF = -INF

pandas/io/common.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@
4747

4848
lzma = _import_lzma()
4949

50-
# gh-12665: Alias for now and remove later.
51-
CParserError = ParserError
52-
5350
# common NA values
5451
# no longer excluding inf representations
5552
# '1.#INF','-1.#INF', '1.#INF000000',

pandas/tests/test_errors.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,6 @@ def test_catch_oob():
3939
pass
4040

4141

42-
def test_error_rename():
43-
# see gh-12665
44-
from pandas.errors import ParserError
45-
from pandas.io.common import CParserError
46-
47-
try:
48-
raise CParserError()
49-
except ParserError:
50-
pass
51-
52-
try:
53-
raise ParserError()
54-
except CParserError:
55-
pass
56-
57-
5842
class Foo:
5943
@classmethod
6044
def classmethod(cls):

0 commit comments

Comments
 (0)