File: __init__.py

package info (click to toggle)
python-mpd 3.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 472 kB
  • sloc: python: 3,148; makefile: 201; sh: 9
file content (39 lines) | stat: -rw-r--r-- 1,649 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# python-mpd2: Python MPD client library
#
# Copyright (C) 2008-2010  J. Alexander Treuman <jat@spatialrift.net>
# Copyright (C) 2012  J. Thalheim <jthalheim@gmail.com>
# Copyright (C) 2016  Robert Niederreiter <rnix@squarewave.at>
#
# python-mpd2 is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# python-mpd2 is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with python-mpd2.  If not, see <http://www.gnu.org/licenses/>.

from mpd.base import CommandError as CommandError
from mpd.base import CommandListError as CommandListError
from mpd.base import ConnectionError as ConnectionError
from mpd.base import FailureResponseCode as FailureResponseCode
from mpd.base import IteratingError as IteratingError
from mpd.base import MPDClient as MPDClient
from mpd.base import MPDError as MPDError
from mpd.base import PendingCommandError as PendingCommandError
from mpd.base import ProtocolError as ProtocolError
from mpd.base import VERSION as VERSION

try:
    from mpd.twisted import MPDProtocol
except ImportError:

    class MPDProtocolDummy:
        def __init__(self) -> None:
            raise Exception("No twisted module found")

    MPDProtocol = MPDProtocolDummy  # type: ignore