Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dictionary key deletion in Cython #240

Closed
wants to merge 1 commit into from
Closed

Fix dictionary key deletion in Cython #240

wants to merge 1 commit into from

Conversation

dnicolson
Copy link
Contributor

This fixes the following error:

TypeError: expected bytes, str found

This code now works:

import plist

test = plist.loads(b'<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>k</key><string>v</string><key>k2</key><string>v2</string></dict></plist>')
del test['k']

@nikias
Copy link
Member

nikias commented Nov 26, 2023

Merged with 960da29.

@nikias nikias closed this Nov 26, 2023
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.

None yet

2 participants