summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwisp3rwind <17089248+wisp3rwind@users.noreply.github.com>2022-01-19 22:53:08 +0100
committerwisp3rwind <17089248+wisp3rwind@users.noreply.github.com>2022-01-19 22:53:08 +0100
commitc1df4fc8c253099a33360ce6001a0b4bc12e66a0 (patch)
tree93cbdddc9ff746bdf96ba2a25d71f8d2bf6e7beb
parentee77b6fbe2967fc0d6df7b56b3cfa650661f2e9a (diff)
CONTRIBUTING.rst: minor Python 3 adaptation
-rw-r--r--CONTRIBUTING.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst
index 32a9d2552..18ca9b9e4 100644
--- a/CONTRIBUTING.rst
+++ b/CONTRIBUTING.rst
@@ -203,11 +203,10 @@ There are a few coding conventions we use in beets:
instead. In particular, we have our own logging shim, so you’ll see
``from beets import logging`` in most files.
- - Always log Unicode strings (e.g., ``log.debug(u"hello world")``).
- The loggers use
`str.format <http://docs.python.org/library/stdtypes.html#str.format>`__-style
logging instead of ``%``-style, so you can type
- ``log.debug(u"{0}", obj)`` to do your formatting.
+ ``log.debug("{0}", obj)`` to do your formatting.
- Exception handlers must use ``except A as B:`` instead of
``except A, B:``.