Skip to content

Commit b43689a

Browse files
authored
Run uv lock --upgrade to upgrade pyparsing (#2850)
<!-- Thanks for opening a pull request! --> <!-- In the case this PR will resolve an issue, please replace ${GITHUB_ISSUE_ID} below with the actual Github issue id. --> Closes #2849 # Rationale for this change A later version of PyParsing has a method deprecated: ``` ImportError while loading conftest '/home/runner/work/iceberg-python/iceberg-python/tests/conftest.py'. tests/conftest.py:49: in <module> from pyiceberg.catalog import Catalog, load_catalog pyiceberg/catalog/__init__.py:45: in <module> from pyiceberg.serializers import ToOutputFile pyiceberg/serializers.py:25: in <module> from pyiceberg.table.metadata import TableMetadata, TableMetadataUtil pyiceberg/table/__init__.py:38: in <module> import pyiceberg.expressions.parser as parser pyiceberg/expressions/parser.py:72: in <module> ParserElement.enablePackrat() .venv/lib/python3.10/site-packages/pyparsing/util.py:445: in _inner warnings.warn( E DeprecationWarning: 'enablePackrat' deprecated - use 'enable_packrat' make: *** [Makefile:96: test] Error 4 ``` ## Are these changes tested? ## Are there any user-facing changes? <!-- In the case of user-facing changes, please add the changelog label. -->
1 parent ccb3a29 commit b43689a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pyiceberg/expressions/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
from pyiceberg.typedef import L
7070
from pyiceberg.types import strtobool
7171

72-
ParserElement.enablePackrat()
72+
ParserElement.enable_packrat()
7373

7474
AND = CaselessKeyword("and")
7575
OR = CaselessKeyword("or")
@@ -82,7 +82,7 @@
8282
BETWEEN = CaselessKeyword("between")
8383

8484
unquoted_identifier = Word(alphas + "_", alphanums + "_$")
85-
quoted_identifier = QuotedString('"', escChar="\\", unquoteResults=True)
85+
quoted_identifier = QuotedString('"', esc_quote="\\", unquote_results=True)
8686

8787

8888
@quoted_identifier.set_parse_action

uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)