Skip to content

Commit

Permalink
docs: Remove various Python 2 related references
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Feb 10, 2020
1 parent 36de51a commit d765e5c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
7 changes: 3 additions & 4 deletions docs/api/base.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,19 @@ Other Classes and Functions
.. class:: text()

This type only exists for documentation purposes. It represents
:obj:`unicode` under Python 2 and :obj:`str` under Python 3.
:obj:`python:str` under Python 3.


.. class:: bytes()

This type only exists for documentation purposes. It represents
:obj:`python:str` under Python 2 and :obj:`python3:bytes` under Python 3.
:obj:`python:bytes` under Python 3.


.. class:: fspath()

This type only exists for documentation purposes. It represents a file
name which can be :obj:`python:str` or :obj:`python:unicode` under Python
2 and :obj:`python3:bytes` or :obj:`python3:str` under Python 3.
name which can be :obj:`python:str` or :obj:`python:bytes` under Python 3.

.. class:: fileobj()

Expand Down
3 changes: 1 addition & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
'sphinx.ext.extlinks',
]
intersphinx_mapping = {
'python': ('https://docs.python.org/2', None),
'python3': ('https://docs.python.org/3', None),
'python': ('https://docs.python.org/3', None),
}
source_suffix = '.rst'
master_doc = 'index'
Expand Down
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ Installing

::

pip install mutagen
python3 -m pip install mutagen

or

::

sudo apt-get install python-mutagen python3-mutagen
sudo apt-get install python3-mutagen


Where do I get it?
Expand Down
5 changes: 2 additions & 3 deletions docs/user/filelike.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ Working with File-like Objects
.. currentmodule:: mutagen

The first argument passed to a :class:`FileType` or :class:`Metadata` can
either be a file name or a file-like object, such as `StringIO
<StringIO.StringIO>` (`BytesIO <io.BytesIO>` in Python 3) and mutagen will
figure out what to do.
either be a file name or a file-like object, such as `BytesIO <io.BytesIO>`
and mutagen will figure out what to do.

::

Expand Down

0 comments on commit d765e5c

Please sign in to comment.