[#8530] convert deprecated operators

* `<>` was removed and should be replaced by
  `!=` (lib2to3.fixes.fix_ne)
* `\`` was removed and should be replaced by either `repr()` or the
  `%r` format string modifier (lib2to3.fixes.fix_repr followed by
  hand-rolled edition to replace concatenation)
This commit is contained in:
Xavier Morel
2017-04-11 16:29:51 +02:00
parent 515ac8e2ae
commit 3f20662b3e
4 changed files with 18 additions and 6 deletions
+12
View File
@@ -86,3 +86,15 @@ or::
This form was implemented in Python 2.5 and is thus compatible across the
board.
Removed Operators
-----------------
.. important::
* The backtick operator ``\`foo\``` must be converted to an explicit call
to the ``repr()`` builtin
* The ``<>`` operator must be replaced by ``!=``
These two operators were long recommended against/deprecated in Python 2,
Python 3 removed them from the language.