From 12f5a3c4f9db47206467af9605215ccc57ee302f Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Wed, 26 Jan 2011 09:13:09 +0100 Subject: Added Python 3 to the list of supported languages for the decorator module; very minor fix to the docs --- decorator/documentation.py | 2 ++ decorator/documentation3.py | 2 ++ decorator/setup.py | 1 + 3 files changed, 5 insertions(+) diff --git a/decorator/documentation.py b/decorator/documentation.py index fc54608..80a3161 100644 --- a/decorator/documentation.py +++ b/decorator/documentation.py @@ -353,6 +353,8 @@ three callbacks ``on_success``, ``on_failure`` and ``on_closing``, to specify how to manage the function call. The implementation is the following: +.. code-block:: python + $$on_success $$on_failure $$on_closing diff --git a/decorator/documentation3.py b/decorator/documentation3.py index 3df2e47..c737267 100644 --- a/decorator/documentation3.py +++ b/decorator/documentation3.py @@ -392,6 +392,8 @@ three callbacks ``on_success``, ``on_failure`` and ``on_closing``, to specify how to manage the function call. The implementation is the following: +.. code-block:: python + $$on_success $$on_failure $$on_closing diff --git a/decorator/setup.py b/decorator/setup.py index 87f4568..8190acd 100644 --- a/decorator/setup.py +++ b/decorator/setup.py @@ -34,6 +34,7 @@ if __name__ == '__main__': 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python', + 'Programming Language :: Python :: 3', 'Topic :: Software Development :: Libraries', 'Topic :: Utilities'], use_2to3=True, -- cgit v1.2.1