]> granicus.if.org Git - python/commitdiff
Issue #28321: Fixed writing non-BMP characters with binary format in plistlib.
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 4 Oct 2016 17:08:29 +0000 (20:08 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 4 Oct 2016 17:08:29 +0000 (20:08 +0300)
1  2 
Lib/plistlib.py
Lib/test/test_plistlib.py
Misc/NEWS

diff --cc Lib/plistlib.py
Simple merge
Simple merge
diff --cc Misc/NEWS
index 4a8e0b85a0c3988b82cb1613f6f7514f718b1134,ef9ba7fdd8f198c1c3b6747219db268876b11420..1a7924ddfada95c926ec4da31ae15e3ae553d5c0
+++ b/Misc/NEWS
@@@ -19,63 -19,83 +19,65 @@@ Core and Builtin
  - Issue #21578: Fixed misleading error message when ImportError called with
    invalid keyword args.
  
 -- Issue #28203: Fix incorrect type in error message from
 -  ``complex(1.0, {2:3})``. Patch by Soumya Sharma.
 -
 -- Issue #27955: Fallback on reading /dev/urandom device when the getrandom()
 -  syscall fails with EPERM, for example when blocked by SECCOMP.
 -
 -- Issue #28131: Fix a regression in zipimport's compile_source().  zipimport
 -  should use the same optimization level as the interpreter.
 -
 -- Issue #25221: Fix corrupted result from PyLong_FromLong(0) when
 -  Python is compiled with NSMALLPOSINTS = 0.
 +- Issue #28203: Fix incorrect type in complex(1.0, {2:3}) error message.
 +  Patch by Soumya Sharma.
  
 -- Issue #25758: Prevents zipimport from unnecessarily encoding a filename
 -  (patch by Eryk Sun)
 +- Issue #28086: Single var-positional argument of tuple subtype was passed
 +  unscathed to the C-defined function.  Now it is converted to exact tuple.
  
 -- Issue #28189: dictitems_contains no longer swallows compare errors.
 -  (Patch by Xiang Zhang)
 +- Issue #28214: Now __set_name__ is looked up on the class instead of the
 +  instance.
  
 -- Issue #27812: Properly clear out a generator's frame's backreference to the
 -  generator to prevent crashes in frame.clear().
 +- Issue #27955: Fallback on reading /dev/urandom device when the getrandom()
 +  syscall fails with EPERM, for example when blocked by SECCOMP.
  
 -- Issue #27811: Fix a crash when a coroutine that has not been awaited is
 -  finalized with warnings-as-errors enabled.
 +- Issue #28192: Don't import readline in isolated mode.
  
 -- Issue #27587: Fix another issue found by PVS-Studio: Null pointer check
 -  after use of 'def' in _PyState_AddModule().
 -  Initial patch by Christian Heimes.
 +- Upgrade internal unicode databases to Unicode version 9.0.0.
  
 -- Issue #26020: set literal evaluation order did not match documented behaviour.
 +- Issue #28131: Fix a regression in zipimport's compile_source().  zipimport
 +  should use the same optimization level as the interpreter.
  
 -- Issue #27782: Multi-phase extension module import now correctly allows the
 -  ``m_methods`` field to be used to add module level functions to instances
 -  of non-module types returned from ``Py_create_mod``. Patch by Xiang Zhang.
 +- Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly
 +  optimize memcpy().
  
 -- Issue #27936: The round() function accepted a second None argument
 -  for some types but not for others.  Fixed the inconsistency by
 -  accepting None for all numeric types.
 +- Issue #28120: Fix dict.pop() for splitted dictionary when trying to remove a
 +  "pending key" (Not yet inserted in split-table). Patch by Xiang Zhang.
  
 -- Issue #27487: Warn if a submodule argument to "python -m" or
 -  runpy.run_module() is found in sys.modules after parent packages are
 -  imported, but before the submodule is executed.
 +- Issue #26182: Raise DeprecationWarning when async and await keywords are
 +  used as variable/attribute/class/function name.
  
 -- Issue #27558: Fix a SystemError in the implementation of "raise" statement.
 -  In a brand new thread, raise a RuntimeError since there is no active
 -  exception to reraise. Patch written by Xiang Zhang.
 +Library
 +-------
  
 -- Issue #27419: Standard __import__() no longer look up "__import__" in globals
 -  or builtins for importing submodules or "from import".  Fixed handling an
 -  error of non-string package name.
++- Issue #28321: Fixed writing non-BMP characters with binary format in plistlib.
 -- Issue #27083: Respect the PYTHONCASEOK environment variable under Windows.
 +- Issue #28225: bz2 module now supports pathlib.  Initial patch by Ethan Furman.
  
 -- Issue #27514: Make having too many statically nested blocks a SyntaxError
 -  instead of SystemError.
 +- Issue #28227: gzip now supports pathlib.  Patch by Ethan Furman.
  
 -- Issue #27473: Fixed possible integer overflow in bytes and bytearray
 -  concatenations.  Patch by Xiang Zhang.
 +- Issue #27358: Optimized merging var-keyword arguments and improved error
 +  message when pass a non-mapping as a var-keyword argument.
  
 -- Issue #27507: Add integer overflow check in bytearray.extend().  Patch by
 -  Xiang Zhang.
 +- Issue #28257: Improved error message when pass a non-iterable as
 +  a var-positional argument.  Added opcode BUILD_TUPLE_UNPACK_WITH_CALL.
  
 -- Issue #27581: Don't rely on wrapping for overflow check in
 -  PySequence_Tuple().  Patch by Xiang Zhang.
 +- Issue #28322: Fixed possible crashes when unpickle itertools objects from
 +  incorrect pickle data.  Based on patch by John Leitch.
  
 -- Issue #27443: __length_hint__() of bytearray iterators no longer return a
 -  negative integer for a resized bytearray.
 +- Issue #28228: imghdr now supports pathlib.
  
 -Library
 --------
 +- Issue #28226: compileall now supports pathlib.
  
 -- Issue #28321: Fixed writing non-BMP characters with binary format in plistlib.
 +- Issue #28314: Fix function declaration (C flags) for the getiterator() method
 +  of xml.etree.ElementTree.Element.
  
 -- Issue #28322: Fixed possible crashes when unpickle itertools objects from
 -  incorrect pickle data.  Based on patch by John Leitch.
 +- Issue #28148: Stop using localtime() and gmtime() in the time
 +  module.
  
 -- Issue #1703178: Fix the ability to pass the --link-objects option to the
 -  distutils build_ext command.
 +  Introduced platform independent _PyTime_localtime API that is
 +  similar to POSIX localtime_r, but available on all platforms.  Patch
 +  by Ed Schouten.
  
  - Issue #28253: Fixed calendar functions for extreme months: 0001-01
    and 9999-12.