summaryrefslogtreecommitdiffstats
path: root/Lib/plistlib.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42249: Fix writing binary Plist files larger than 4 GiB. (GH-23121)Miss Skeleton (bot)2020-11-031-1/+1
| | | | | (cherry picked from commit 212d32f45c91849c17a82750df1ac498d63976be) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-42103: Improve validation of Plist files. (GH-22882)Miss Skeleton (bot)2020-11-021-8/+18
| | | | | | | | | | | * Prevent some possible DoS attacks via providing invalid Plist files with extremely large number of objects or collection sizes. * Raise InvalidFileException for too large bytes and string size instead of returning garbage. * Raise InvalidFileException instead of ValueError for specific invalid datetime (NaN). * Raise InvalidFileException instead of TypeError for non-hashable dict keys. * Add more tests for invalid Plist files. (cherry picked from commit 34637a0ce21e7261b952fbd9d006474cc29b681f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-41491: plistlib: accept hexadecimal integer values in xml plist files ↵Miss Skeleton (bot)2020-10-201-1/+5
| | | | | | | (GH-22764) (GH-22806) (cherry picked from commit 3185267400be853404f22a1e06bb9fe1210735c7) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* bpo-42051: Reject XML entity declarations in plist files (GH-22760)Miss Skeleton (bot)2020-10-201-0/+7
| | | | | (cherry picked from commit 05ee790f4d1cd8725a90b54268fc1dfe5b4d1fa2) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* bpo-40443: Remove unused imports in the stdlib (GH-19803)Victor Stinner2020-04-301-2/+0
|
* bpo-36409: Remove old plistlib API deprecated in 3.4 (GH-15615)Jon Janzen2019-09-051-146/+9
| | | | * Remove implementation for old plistlib API deprecated in 3.4
* Clarify that plistlib's load and dump functions take a binary file object ↵Collin Styles2019-07-141-3/+3
| | | | | | | | | | | (GH-9825) The documentation says that the fp parameter to plistlib.load "should be a readable and binary file object" but the docstring only mentions that it should be readable. Similarly, plistlib.dump's docstring only mentions "writable". This commit clarifies that fp should also be binary. https://docs.python.org/3/library/plistlib.html#plistlib.load https://docs.python.org/3/library/plistlib.html#plistlib.dump
* bpo-26707: Enable plistlib to read UID keys. (GH-12153)Jon Janzen2019-05-151-3/+46
| | | | | | | | | Plistlib currently throws an exception when asked to decode a valid .plist file that was generated by Apple's NSKeyedArchiver. Specifically, this is caused by a byte 0x80 (signifying a UID) not being understood. This fixes the problem by enabling the binary plist reader and writer to read and write plistlib.UID objects.
* bpo-33908: Remove two superfluous assignments (GH-7116)Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)2018-06-201-1/+0
| | | Signed-off-by: Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com>
* bpo-32072: Fix issues with binary plists. (#4455)Serhiy Storchaka2017-11-301-36/+51
| | | | | | | * Fixed saving bytearrays. * Identical objects will be saved only once. * Equal references will be load as identical objects. * Added support for saving and loading recursive data structures.
* bpo-31897: Convert unexpected errors when read bogus binary plists into ↵Serhiy Storchaka2017-10-311-1/+4
| | | | InvalidFileException. (#4171)
* bpo-29196: Removed old-deprecated classes Plist, Dict and _InternalDict (#488)Serhiy Storchaka2017-05-151-68/+3
| | | | | in the plistlib module. Dict values in the result of functions readPlist() and readPlistFromBytes() are now exact dicts.
* Issue #28321: Fixed writing non-BMP characters with binary format in plistlib.Serhiy Storchaka2016-10-041-1/+1
|\
| * Issue #28321: Fixed writing non-BMP characters with binary format in plistlib.Serhiy Storchaka2016-10-041-1/+1
| |
* | Issue #27109: Add InvalidFileException to __all__, by Jacek KołodziejMartin Panter2016-06-061-1/+1
|/
* Issue #26711: Fixed the comparison of plistlib.Data with other types.Serhiy Storchaka2016-05-011-2/+2
|
* Issue #26709: Fixed Y2038 problem in loading binary PLists.Serhiy Storchaka2016-04-081-1/+1
|
* Issue #21888: plistlib's load() and loads() now work if the fmt parameter isSerhiy Storchaka2014-07-231-5/+3
| | | | specified.
* Issue #21538: The plistlib module now supports loading of binary plist filesSerhiy Storchaka2014-05-231-6/+10
| | | | when reference or offset size is not a power of two.
* Issue #14455: fix handling of unsigned long long values for binary plist filesRonald Oussoren2014-02-061-5/+6
| | | | | | | | | | Values in the range of an unsigned long long, but outside of the range of a signed long long were serialized as a negative value. Due to a bug in PyObjC my test scripts indicated that the previous behavior matched Apple's plist code, instead the handle large unsigned values correctly. The change to plistlib.py is from a patch by Serhiy.
* Issue #14455: Fix some issues with plistlibRonald Oussoren2014-01-151-5/+17
| | | | | | | | | | * Negative integer support in binary plists was broken * Better exception for invalid data * Fix the versionadded/versionchanged markup in the documentation * Add the interface cleanup to what's new for 3.4
* Issue #14455: Fix maybe_open typo in Plist.fromFile().Ned Deily2013-11-221-1/+1
|
* Issue #14455: plistlib now supports binary plists and has an updated API.Ronald Oussoren2013-11-211-271/+827
| | | | | | | This patch adds support for binary plists on OSX to plistlib (based on a patch by 'dpounces'). The patch also cleans up the API for the plistlib module.
* Ensure that plistlib doesn't corrupt deeply nested datastructuresRonald Oussoren2013-04-231-2/+2
| | | | | | | Without this changeset plistlib would write empty tags for plistlib.Data objects in deeply nested datastructures. Fixes #17353
* #14835: Make plistlib output empty arrays & dicts like OS XHynek Schlawack2012-05-291-12/+18
| | | | Patch by Sidney San Martín.
* Issue #12452: Plist and Dict are now deprecatedVictor Stinner2011-07-041-5/+5
| | | | Replace PendingDeprecationWarning warnings by DeprecationWarning.
* Issue #985064: Make plistlib more resilient to faulty input plists.Ned Deily2011-05-281-22/+37
|\ | | | | | | Patch by Mher Movsisyan.
| * Issue #985064: Make plistlib more resilient to faulty input plists.Ned Deily2011-05-281-22/+37
| | | | | | | | Patch by Mher Movsisyan.
| * Merged revisions 74813 via svnmerge fromEzio Melotti2009-09-161-15/+14
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r74813 | ezio.melotti | 2009-09-16 03:49:03 +0300 (Wed, 16 Sep 2009) | 1 line updated the doc to match the module docstring, fixed a couple of errors in the doc markup and in the module ........
* | Merged revisions 80279 via svnmerge fromRonald Oussoren2010-04-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80279 | ronald.oussoren | 2010-04-20 22:59:37 +0200 (Tue, 20 Apr 2010) | 3 lines Fix for issue 7852: the DTD for OSX Plists has changed due to a change in the company name for Apple. ........
* | updated the doc to match the module docstring, fixed a couple of errors in ↵Ezio Melotti2009-09-161-15/+14
|/ | | | the doc markup and in the module
* More codestring -> codebytes.Georg Brandl2009-06-041-2/+2
|
* #4351: more appropriate DeprecationWarning stacklevelsPhilip Jenvey2009-05-081-5/+5
|
* Merged revisions ↵Benjamin Peterson2009-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 70980,71059,71225,71234,71241,71243,71249,71251,71255,71266,71299,71329,71397-71398,71486 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r70980 | jack.diederich | 2009-04-01 15:26:13 -0500 (Wed, 01 Apr 2009) | 3 lines bounds check arguments to mmap.move(). All of them. Really. fixes crasher on OS X 10.5 ........ r71059 | mark.dickinson | 2009-04-02 13:39:37 -0500 (Thu, 02 Apr 2009) | 2 lines sys.long_info attributes should be ints, not longs ........ r71225 | georg.brandl | 2009-04-05 06:54:07 -0500 (Sun, 05 Apr 2009) | 1 line #5580: no need to use parentheses when converterr() argument is actually a type description. ........ r71234 | georg.brandl | 2009-04-05 08:16:35 -0500 (Sun, 05 Apr 2009) | 1 line Whitespace normalization. ........ r71241 | georg.brandl | 2009-04-05 09:48:49 -0500 (Sun, 05 Apr 2009) | 1 line #5471: fix expanduser() for $HOME set to "/". ........ r71243 | georg.brandl | 2009-04-05 10:14:29 -0500 (Sun, 05 Apr 2009) | 1 line #5432: make plistlib docstring a raw string, since it contains examples with backslash escapes. ........ r71249 | georg.brandl | 2009-04-05 11:30:43 -0500 (Sun, 05 Apr 2009) | 1 line #5444: adapt make.bat to new htmlhelp output file name. ........ r71251 | georg.brandl | 2009-04-05 12:17:42 -0500 (Sun, 05 Apr 2009) | 1 line #5298: clarify docs about GIL by using more consistent wording. ........ r71255 | georg.brandl | 2009-04-05 13:34:58 -0500 (Sun, 05 Apr 2009) | 1 line #602893: add indicator for current line in cgitb that doesnt rely on styling alone. ........ r71266 | georg.brandl | 2009-04-05 15:23:13 -0500 (Sun, 05 Apr 2009) | 1 line Normalize issue referencing style. ........ r71299 | gregory.p.smith | 2009-04-05 18:43:58 -0500 (Sun, 05 Apr 2009) | 3 lines Fixes issue5705: os.setuid() and friends did not accept the same range of values that pwd.getpwnam() returns. ........ r71329 | benjamin.peterson | 2009-04-06 16:53:33 -0500 (Mon, 06 Apr 2009) | 1 line add create_connection to __all__ #5711 ........ r71397 | georg.brandl | 2009-04-08 11:36:39 -0500 (Wed, 08 Apr 2009) | 1 line Remove redundant backtick. ........ r71398 | georg.brandl | 2009-04-08 11:39:04 -0500 (Wed, 08 Apr 2009) | 1 line Update ignore file for suspicious builder. ........ r71486 | andrew.kuchling | 2009-04-11 11:18:14 -0500 (Sat, 11 Apr 2009) | 1 line Re-word ........
* #2834: Change re module semantics, so that str and bytes mixing is forbidden,Antoine Pitrou2008-08-191-1/+1
| | | | | and str (unicode) patterns get full unicode matching by default. The re.ASCII flag is also introduced to ask for ASCII matching instead.
* Remove the Mac modulesBenjamin Peterson2008-05-121-35/+0
|
* svn cp -r60150 ↵Christian Heimes2008-01-271-0/+469
| | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k/Lib/plat-mac/plistlib.py Lib/
* Remove plistlib. Apparently svn chokes on svn rm + svn cp in the same revisionChristian Heimes2008-01-271-469/+0
|
* Copied plistlib.py from r60150 Lib/plat-mac/plistlib.py to Lib/Christian Heimes2008-01-261-50/+49
|
* Merged revisions 60151-60159,60161-60168,60170,60172-60173,60175 via ↵Georg Brandl2008-01-211-0/+470
svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r60151 | christian.heimes | 2008-01-21 14:11:15 +0100 (Mon, 21 Jan 2008) | 1 line A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make. ........ r60152 | georg.brandl | 2008-01-21 15:16:46 +0100 (Mon, 21 Jan 2008) | 3 lines #1087741: make mmap.mmap the type of mmap objects, not a factory function. Allow it to be subclassed. ........ r60153 | georg.brandl | 2008-01-21 15:18:14 +0100 (Mon, 21 Jan 2008) | 2 lines mmap is an extension module. ........ r60154 | georg.brandl | 2008-01-21 17:28:13 +0100 (Mon, 21 Jan 2008) | 2 lines Fix example. ........ r60155 | georg.brandl | 2008-01-21 17:34:07 +0100 (Mon, 21 Jan 2008) | 2 lines #1555501: document plistlib and move it to the general library. ........ r60156 | georg.brandl | 2008-01-21 17:36:00 +0100 (Mon, 21 Jan 2008) | 2 lines Add a stub for bundlebuilder documentation. ........ r60157 | georg.brandl | 2008-01-21 17:46:58 +0100 (Mon, 21 Jan 2008) | 2 lines Removing bundlebuilder docs again -- it's not to be used anymore (see #779825). ........ r60158 | georg.brandl | 2008-01-21 17:51:51 +0100 (Mon, 21 Jan 2008) | 2 lines #997912: acknowledge nested scopes in tutorial. ........ r60159 | vinay.sajip | 2008-01-21 18:02:26 +0100 (Mon, 21 Jan 2008) | 1 line Fix: #1836: Off-by-one bug in TimedRotatingFileHandler rollover calculation. Patch thanks to Kathryn M. Kowalski. ........ r60161 | georg.brandl | 2008-01-21 18:13:03 +0100 (Mon, 21 Jan 2008) | 2 lines Adapt pydoc to new doc URLs. ........ r60162 | georg.brandl | 2008-01-21 18:17:00 +0100 (Mon, 21 Jan 2008) | 2 lines Fix old link. ........ r60163 | georg.brandl | 2008-01-21 18:22:06 +0100 (Mon, 21 Jan 2008) | 2 lines #1726198: replace while 1: fp.readline() with file iteration. ........ r60164 | georg.brandl | 2008-01-21 18:29:23 +0100 (Mon, 21 Jan 2008) | 2 lines Clarify $ behavior in re docstring. #1631394. ........ r60165 | vinay.sajip | 2008-01-21 18:39:22 +0100 (Mon, 21 Jan 2008) | 1 line Minor documentation change - hyperlink tidied up. ........ r60166 | georg.brandl | 2008-01-21 18:42:40 +0100 (Mon, 21 Jan 2008) | 2 lines #1530959: change distutils build dir for --with-pydebug python builds. ........ r60167 | vinay.sajip | 2008-01-21 19:16:05 +0100 (Mon, 21 Jan 2008) | 1 line Updated to include news on recent logging fixes and documentation changes. ........ r60168 | georg.brandl | 2008-01-21 19:35:49 +0100 (Mon, 21 Jan 2008) | 3 lines Issue #1882: when compiling code from a string, encoding cookies in the second line of code were not always recognized correctly. ........ r60170 | georg.brandl | 2008-01-21 19:36:51 +0100 (Mon, 21 Jan 2008) | 2 lines Add NEWS entry for #1882. ........ r60172 | georg.brandl | 2008-01-21 19:41:24 +0100 (Mon, 21 Jan 2008) | 2 lines Use original location of document, which has translations. ........ r60173 | walter.doerwald | 2008-01-21 21:18:04 +0100 (Mon, 21 Jan 2008) | 2 lines Follow PEP 8 in module docstring. ........ r60175 | georg.brandl | 2008-01-21 21:20:53 +0100 (Mon, 21 Jan 2008) | 2 lines Adapt to latest doctools refactoring. ........