Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 19bd069

Browse files
author
Victor Stinner
committed
What's New in 3.3: Add a "Deprecated ..." section
1 parent 040e16e commit 19bd069

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

Doc/whatsnew/3.3.rst

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,22 @@ Windows 2000 and Windows platforms which set ``COMSPEC`` to ``command.com``
558558
are no longer supported due to maintenance burden.
559559

560560

561+
Deprecated modules, functions and methods
562+
=========================================
563+
564+
* The :mod:`packaging` module replaces the :mod:`distutils` module
565+
* The ``unicode_internal`` codec has been deprecated because of the
566+
:pep:`393`, use UTF-8, UTF-16 (``utf-16-le`` or ``utf-16-le``), or UTF-32
567+
(``utf-32-le`` or ``utf-32-le``) instead.
568+
* :meth:`ftplib.FTP.nlst` and :meth:`ftplib.FTP.dir`: use
569+
:meth:`ftplib.FTP.mlsd` instead.
570+
* :func:`platform.popen`: use the :mod:`subprocess` module. Check especially
571+
the :ref:`subprocess-replacements` section.
572+
* :issue:`13374`: The Windows bytes API has been deprecated in the :mod:`os`
573+
module. Use Unicode filenames instead of bytes filenames to not depend on
574+
the ANSI code page anymore and to support any filename.
575+
576+
561577
Porting to Python 3.3
562578
=====================
563579

@@ -567,16 +583,12 @@ that may require changes to your code.
567583
Porting Python code
568584
-------------------
569585

570-
* Issue #12326: On Linux, sys.platform doesn't contain the major version
586+
* :issue:`12326`: On Linux, sys.platform doesn't contain the major version
571587
anymore. It is now always 'linux', instead of 'linux2' or 'linux3' depending
572588
on the Linux version used to build Python. Replace sys.platform == 'linux2'
573589
with sys.platform.startswith('linux'), or directly sys.platform == 'linux' if
574590
you don't need to support older Python versions.
575591

576-
* Issue #13374: The Windows bytes API has been deprecated in the :mod:`os`
577-
module. Use Unicode filenames instead of bytes filenames to not depend on the
578-
ANSI code page anymore and to support any filename.
579-
580592
Porting C code
581593
--------------
582594

0 commit comments

Comments
 (0)