summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRaphael Nestler <raphael.nestler@renuo.ch>2022-08-09 15:13:40 +0200
committerAarni Koskela <akx@iki.fi>2022-08-21 22:33:36 +0300
commit6d29bff85bf3d9141156a1183826d4a04d9245fd (patch)
tree289e0b936a6941d8b439eeccee3f71c5d0e6219e /docs
parentd8584405a66a79d79bed44b5d80df0bc89f8eee3 (diff)
downloadbabel-6d29bff85bf3d9141156a1183826d4a04d9245fd.tar.gz
Update Python versions in dev docs
Also remove mentions of Python 2 workarounds, since they aren't applicable anymore.
Diffstat (limited to 'docs')
-rw-r--r--docs/dev.rst20
1 files changed, 2 insertions, 18 deletions
diff --git a/docs/dev.rst b/docs/dev.rst
index 0ff033f..c362724 100644
--- a/docs/dev.rst
+++ b/docs/dev.rst
@@ -30,17 +30,8 @@ Python Versions
At the moment the following Python versions should be supported:
-* Python 2.7
-* Python 3.4 and up
-* PyPy tracking 2.7 and 3.2 and up
-
-While PyPy does not currently support 3.3, it does support traditional
-unicode literals which simplifies the entire situation tremendously.
-
-Documentation must build on Python 2, Python 3 support for the
-documentation is an optional goal. Code examples in the docs preferably
-are written in a style that makes them work on both 2.x and 3.x with
-preference to the former.
+* Python 3.6 and up
+* PyPy 3.7 and up
Unicode
-------
@@ -48,16 +39,9 @@ Unicode
Unicode is a big deal in Babel. Here is how the rules are set up:
* internally everything is unicode that makes sense to have as unicode.
- The exception to this rule are things which on Python 2 traditionally
- have been bytes. For example file names on Python 2 should be treated
- as bytes wherever possible.
* Encode / decode at boundaries explicitly. Never assume an encoding in
a way it cannot be overridden. utf-8 should be generally considered
the default encoding.
-* Dot not use ``unicode_literals``, instead use the ``u''`` string
- syntax. The reason for this is that the former introduces countless
- of unicode problems by accidentally upgrading strings to unicode which
- should not be. (docstrings for instance).
Dates and Timezones
-------------------