Skip to content

Commit 97423d0

Browse files
committed
Fix Sphinx usage example
1 parent 9cf2009 commit 97423d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ instead use ``pkg_resources`` after editable/real installation:
5353
.. code:: python
5454
5555
from pkg_resources import get_distribution
56-
release = pkg_resources('myproject').version
57-
# for the example take major/minor
56+
release = get_distribution('myproject').version
57+
# for example take major/minor
5858
version = '.'.join(release.split('.')[:2])
5959
6060
The underlying reason is, that services like readthedocs sometimes change

0 commit comments

Comments
 (0)