Skip to content

Add aware_datetime option to plistlib functions#11276

Merged
srittau merged 1 commit into
python:mainfrom
aisk:plist-3.13
Jan 15, 2024
Merged

Add aware_datetime option to plistlib functions#11276
srittau merged 1 commit into
python:mainfrom
aisk:plist-3.13

Conversation

@aisk

@aisk aisk commented Jan 15, 2024

Copy link
Copy Markdown
Member

Since python/cpython#113363 and python/cpython#113582 have been merged, the plistlib module in upcoming Python3.13 release, will have a new optional parameter aware_datetime in most of it's functions.

In addition, the plistlib.loads also accepts str type as inputs value.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@aisk

aisk commented Jan 15, 2024

Copy link
Copy Markdown
Member Author

The failed CI check https://github.com/python/typeshed/actions/runs/7528137651/job/20489713547?pr=11276 should not related to this change.

@srittau srittau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Ideally, we'd have overloads to allow a str value only if fmt is FMT_XML, but this will do for now.

@srittau

srittau commented Jan 15, 2024

Copy link
Copy Markdown
Collaborator

(The CI failure is unrelated.)

@srittau
srittau merged commit 5367bab into python:main Jan 15, 2024
@aisk
aisk deleted the plist-3.13 branch January 15, 2024 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants