1
0
Fork 0
forked from github/pelican

Merge pull request #2231 from jorgesumle/comma-missing-docs

Correct typo from documentation
This commit is contained in:
Justin Mayer 2017-10-23 07:26:41 -07:00 committed by GitHub
commit aac005cd0f

View file

@ -116,8 +116,8 @@ and Python 3 at the same time:
- Encode/decode strings if e.g. the source is a Python function that is known
to handle this badly, e.g. strftime() in Python 2.
- Use new syntax: print function, "except ... *as* e" (not comma) etc.
- Refactor method calls like ``dict.iteritems()``, ``xrange()`` etc. in a way
- Use new syntax: print function, "except ... *as* e" (not comma), etc.
- Refactor method calls like ``dict.iteritems()``, ``xrange()``, etc. in a way
that runs without code change in both Python versions.
- Do not use magic method ``__unicode()__`` in new classes. Use only ``__str()__``
and decorate the class with ``@python_2_unicode_compatible``.