Skip to content

Commit 16f6fac

Browse files
committed
README: Use code-block for all Python blocks
This gives us syntax higlighting in the README on PyPI. Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent 0413a68 commit 16f6fac

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

README.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ pointing to an allocated resource, which is the result of calling
115115
``resource_manager.getResource()``. ``finishedWith`` will be called on each
116116
resource during tearDown().
117117

118-
For example::
118+
For example:
119+
120+
.. code-block:: python
119121
120122
class TestLog(testresources.ResourcedTestCase):
121123
@@ -161,7 +163,9 @@ overriding these methods:
161163
whether ``TestResourceManager.dirtied`` has been called or any of the
162164
dependency resources are dirty.
163165

164-
For instance::
166+
For instance:
167+
168+
.. code-block:: python
165169
166170
class TemporaryDirectoryResource(TestResourceManager):
167171
@@ -179,7 +183,9 @@ For instance::
179183
180184
The ``resources`` list on the TestResourceManager object is used to declare
181185
dependencies. For instance, a DataBaseResource that needs a TemporaryDirectory
182-
might be declared with a resources list::
186+
might be declared with a resources list:
187+
188+
.. code-block:: python
183189
184190
class DataBaseResource(TestResourceManager):
185191

0 commit comments

Comments
 (0)