Skip to content

Commit e3c7a5c

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

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
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>`_

0 commit comments

Comments
 (0)