Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix: Replace deprecated delimitedList with DelimitedList#1536

Open
coderamaster wants to merge 1 commit intopython-openxml:masterfrom
coderamaster:fix/deprecation-delimitedlist-to-delimited-list
Open

Fix: Replace deprecated delimitedList with DelimitedList#1536
coderamaster wants to merge 1 commit intopython-openxml:masterfrom
coderamaster:fix/deprecation-delimitedlist-to-delimited-list

Conversation

@coderamaster
Copy link

Description

Fixed deprecation warning in test utilities by replacingdelimitedList withDelimitedList.

Problem

The test utilities usedelimitedList from pyparsing, which is deprecated in newer versions. This causes deprecation warnings when running tests:

pyparsing.warnings.PyparsingDeprecationWarning: 'delimitedList' deprecated - use 'DelimitedList'

Solution

  • Updated import intests/unitutil/cxml.py to useDelimitedList instead ofdelimitedList.
  • Replaced two usages ofdelimitedList() withDelimitedList() in the grammar function.

Changes Made

  • Updated import statement (line 18).
  • ReplaceddelimitedList(attr_def) withDelimitedList(attr_def) (line 246).
  • ReplaceddelimitedList(node) withDelimitedList(node) (line 263).

Testing

  • Code changes verified.
  • No syntax errors.
  • Functionality preserved (DelimitedList is the direct replacement).

Checklist

  • Code follows project style guidelines.
  • Changes are minimal and focused.
  • No breaking changes.
  • PR description is clear.

- Updated import to use DelimitedList instead of delimitedList- Replaced delimitedList() calls with DelimitedList() in grammar()- Fixes pyparsing deprecation warning in test utilities
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@coderamaster

[8]ページ先頭

©2009-2026 Movatter.jp