[issue39732] plistlib should export UIDs in XML like Apple does

2020-11-27 Thread Jon Janzen


Change by Jon Janzen :


--
nosy: +bigfootjon

___
Python tracker 
<https://bugs.python.org/issue39732>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38143] plistlib: cleanup PEP8 violations

2019-09-12 Thread Jon Janzen


Change by Jon Janzen :


--
keywords: +patch
pull_requests: +15694
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/16074

___
Python tracker 
<https://bugs.python.org/issue38143>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38143] plistlib: cleanup PEP8 violations

2019-09-12 Thread Jon Janzen


New submission from Jon Janzen :

There are a series of PEP8 violations in plistlib.

Most of them are spacing issues, a few naming issues, and also some unused 
function parameters and unused imports that can be done away with.

--
components: Library (Lib)
messages: 352221
nosy: bigfootjon, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: plistlib: cleanup PEP8 violations
type: enhancement
versions: Python 3.9

___
Python tracker 
<https://bugs.python.org/issue38143>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38053] Update plistlib documentation

2019-09-09 Thread Jon Janzen


Jon Janzen  added the comment:

>* Remove notes about the new API being added in 3.4 since 3.4 is no longer 
>supported

Per discussion in the PR, this is no longer a goal of this issue

--

___
Python tracker 
<https://bugs.python.org/issue38053>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38053] Update plistlib documentation

2019-09-07 Thread Jon Janzen


New submission from Jon Janzen :

* Update "Mac OS X" to "Apple" since plists are used more widely than just macOS
* Remove notes about the new API being added in 3.4 since 3.4 is no longer 
supported
* Re-add the UID class documentation (oops, removed in issue36409)

--
assignee: docs@python
components: Documentation
messages: 351309
nosy: bigfootjon, docs@python
priority: normal
pull_requests: 15381
severity: normal
status: open
title: Update plistlib documentation
type: enhancement
versions: Python 3.9

___
Python tracker 
<https://bugs.python.org/issue38053>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36409] plistlib old API should be removed

2019-09-05 Thread Jon Janzen


Change by Jon Janzen :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue36409>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36409] plistlib old API should be removed

2019-08-30 Thread Jon Janzen


Change by Jon Janzen :


--
pull_requests: +15288
pull_request: https://github.com/python/cpython/pull/15615

___
Python tracker 
<https://bugs.python.org/issue36409>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36409] plistlib old API should be removed

2019-03-26 Thread Jon Janzen


Jon Janzen  added the comment:

Ah, I misinterpreted PEP4. I thought it only applied to modules as a whole 
(e.g. plistlib) rather than individual functionality within that module. I'll 
close my PR and wait until 3.9 is accepting patches

--
versions: +Python 3.9 -Python 3.8

___
Python tracker 
<https://bugs.python.org/issue36409>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36409] plistlib old API should be removed

2019-03-23 Thread Jon Janzen


Change by Jon Janzen :


--
keywords: +patch
pull_requests: +12466
stage:  -> patch review

___
Python tracker 
<https://bugs.python.org/issue36409>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36409] plistlib old API should be removed

2019-03-23 Thread Jon Janzen


New submission from Jon Janzen :

Per the documentation and in-line code warnings, the old API for plistlib was 
deprecated in version 3.4. My understanding is that deprecated functionality is 
to be removed in the next major version, so this code is long overdue for 
removal.

--
components: Library (Lib)
messages: 338683
nosy: bigfootjon
priority: normal
severity: normal
status: open
title: plistlib old API should be removed
versions: Python 3.8

___
Python tracker 
<https://bugs.python.org/issue36409>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26707] plistlib fails to parse bplist with 0x80 UID values

2019-03-03 Thread Jon Janzen


Jon Janzen  added the comment:

I recently upgraded my python version and my hot-patch broke due to changes in 
bpo-32072 (GH-4455).

It reminded me of this b.p.o., and after reading through the messages to remind 
myself where the patch stood I realized that my tone friendly towards the end 
was not overly.

@ronaldoussoren, I apologize if I offended.

In other news, I re-implemented the patch (and filed a new pull-request) due to 
the following:

* Things got spread out over too many commits
* NSKeyedArchiver only uses binary mode, so I removed the XML compatibility
* I also wrote a few tests to verify the UID implementation

--

___
Python tracker 
<https://bugs.python.org/issue26707>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26707] plistlib fails to parse bplist with 0x80 UID values

2019-03-03 Thread Jon Janzen


Change by Jon Janzen :


--
pull_requests: +12152

___
Python tracker 
<https://bugs.python.org/issue26707>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26707] plistlib fails to parse bplist with 0x80 UID values

2018-03-28 Thread Jon Janzen

Jon Janzen <jjjonjan...@gmail.com> added the comment:

Ping

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue26707>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26707] plistlib fails to parse bplist with 0x80 UID values

2018-03-13 Thread Jon Janzen

Jon Janzen <jjjonjan...@gmail.com> added the comment:

Support for KeyedArchives are not limited to the Swift implementation I linked 
to. They have been supported since Mac OS X since 10.2 (long before Swift came 
around). The documentation 
(https://developer.apple.com/documentation/foundation/nskeyedarchiver?language=objc)
 shows that NSKeyedArchive can only output in plist format since outputFormat 
is of type NSPropertyListFormat (allowing to output in either XML or binary).

The other unimplemented binary token types (URL, UUID, set, ordset) are not 
used under NSKeyedArchive (see the "Encoding Data and Objects" section of the 
documentation mentioned above) so there's no concern that supporting 0x80 (UID) 
will suddenly necessitate implementing the other unimplemented types. If you 
feel that it would be necessary to implement them in order to accept the patch 
I would be happy to try and implement them.

I know I certainly have an use case (reading to-do list data from the 2Do app) 
and the creator of this bug wanted to read SnapChat data files.

Currently, I am using a hot-patched plistlib._BinaryPlistParser to read the 
data I need (see attached for a snippet) and I would rather not do that, but if 
you think my use case scope does not warrant inclusion in the standard library 
then I'll just have to deal with that.

--
Added file: https://bugs.python.org/file47483/plist_hack.py

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue26707>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26707] plistlib fails to parse bplist with 0x80 UID values

2018-03-13 Thread Jon Janzen

Jon Janzen <jjjonjan...@gmail.com> added the comment:

Ping

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue26707>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26707] plistlib fails to parse bplist with 0x80 UID values

2018-03-05 Thread Jon Janzen

Jon Janzen <jjjonjan...@gmail.com> added the comment:

@serhiy.storchaka: I've implemented a UID wrapper class

I've also updated the parser and writer classes to support the UID wrapper. The 
implementations for reading/writing XML UID tags match the implementations 
given by Apple's plutil distributed with macOS:

UID(x) becomes {'CF$UID': int(x)}

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue26707>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26707] plistlib fails to parse bplist with 0x80 UID values

2018-03-03 Thread Jon Janzen

Jon Janzen <jjjonjan...@gmail.com> added the comment:

Hello,

I have attached a file extracted from the database of the 2Do App for iOS and 
macOS. The file contains information about tags used in the app.

plistlib cannot currently parse this file because it lacks the ability to read 
byte 0x80 (UID).

I believe the documentation for generating these type of files can be found at: 
https://developer.apple.com/documentation/foundation/nskeyedarchiver

--
nosy: +bigfootjon
Added file: https://bugs.python.org/file47468/cat.plist

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue26707>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com