Skip to content

Commit b6f12e1

Browse files
committed
Removed references to Python 2 "unicode" type from docs.
1 parent 9671971 commit b6f12e1

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

discid/disc.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ def read(device=None, features=[]):
3636
"""Reads the TOC from the device given as string
3737
and returns a :class:`Disc` object.
3838
39-
That string can be either of:
40-
:obj:`str <python:str>`, :obj:`unicode` or :obj:`bytes`.
39+
That string can be either of :obj:`str <python:str>` or :obj:`bytes`.
4140
However, it should in no case contain non-ASCII characters.
4241
If no device is given, a default, also given by :func:`get_default_device`
4342
is used.
@@ -276,14 +275,14 @@ def _get_mcn(self):
276275
@property
277276
def id(self):
278277
"""This is the MusicBrainz :musicbrainz:`Disc ID`,
279-
a :obj:`unicode` or :obj:`str <python:str>` object.
278+
a :obj:`str <python:str>` object.
280279
"""
281280
return self._get_id()
282281

283282
@property
284283
def freedb_id(self):
285284
"""This is the :musicbrainz:`FreeDB` Disc ID (without category),
286-
a :obj:`unicode` or :obj:`str <python:str>` object.
285+
a :obj:`str <python:str>` object.
287286
"""
288287
return self._get_freedb_id()
289288

@@ -293,7 +292,7 @@ def submission_url(self):
293292
294293
With this url you can submit the current TOC
295294
as a new MusicBrainz :musicbrainz:`Disc ID`.
296-
This is a :obj:`unicode` or :obj:`str <python:str>` object.
295+
This is a :obj:`str <python:str>` object.
297296
"""
298297
url = self._get_submission_url()
299298
if url is None:
@@ -309,7 +308,7 @@ def toc_string(self):
309308
"""The TOC suitable as value of the `toc parameter`
310309
when accessing the MusicBrainz Web Service.
311310
312-
This is a :obj:`unicode` or :obj:`str <python:str>` object
311+
This is a :obj:`str <python:str>` object
313312
and enables fuzzy searching when the actual Disc ID is not found.
314313
315314
Note that this is the unencoded value, which still contains spaces.
@@ -360,7 +359,7 @@ def mcn(self):
360359
361360
It is set after the `"mcn"` feature was requested on a read
362361
and supported by the platform or :obj:`None`.
363-
If set, this is a :obj:`unicode` or :obj:`str <python:str>` object.
362+
If set, this is a :obj:`str <python:str>` object.
364363
"""
365364
return self._get_mcn()
366365

@@ -379,7 +378,7 @@ def tracks(self):
379378
def cddb_query_string(self):
380379
"""A CDDB query string suitable for querying CDDB servers.
381380
382-
This is a :obj:`unicode` or :obj:`str <python:str>` object
381+
This is a :obj:`str <python:str>` object
383382
and enables generating queries to CDDB servers.
384383
385384
.. seealso:: `CDDB Server Protocol <http://ftp.freedb.org/pub/freedb/latest/CDDBPROTO>`_

discid/libdiscid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def _get_version_string():
128128
_LIB.discid_get_default_device.restype = c_char_p
129129
def get_default_device():
130130
"""The default device to use for :func:`read` on this platform
131-
given as a :obj:`unicode` or :obj:`str <python:str>` object.
131+
given as a :obj:`str <python:str>` object.
132132
"""
133133
device = _LIB.discid_get_default_device()
134134
return _decode(device)

discid/track.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ def isrc(self):
9696
"""The International Standard Recording Code
9797
9898
This will be `None` when the `"isrc"` feature was not requested
99-
or not supported, otherwise this is a :obj:`unicode` or
100-
:obj:`str <python:str>` object.
99+
or not supported, otherwise this is a :obj:`str <python:str>` object.
101100
"""
102101
return self._get_track_isrc()
103102

0 commit comments

Comments
 (0)