From: Kaliko Jack Date: Tue, 26 Feb 2019 15:35:48 +0000 (+0100) Subject: Update changelog and copyright header X-Git-Tag: v0.4.4~1 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=56b5db14966cd8c49caa4912405d2d932ab51475;p=python-musicpd.git Update changelog and copyright header --- diff --git a/CHANGES.txt b/CHANGES.txt index e8f3380..a134a0c 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,6 +4,8 @@ python-musicpd Changes List Changes in 0.4.4 UNRELEASED --------------------------- +* Add tcp socket timeout, exposed in musicpd.CONNECTION_TIMEOUT, defaults to 5s + (Thanks to Bart Van Loon) * Add partition commands (Thanks Naglis Jonaitis) * Add listfiles command * Add tagtypes (disable|enable|clear|all) commands diff --git a/musicpd.py b/musicpd.py index e8f7863..383ba09 100644 --- a/musicpd.py +++ b/musicpd.py @@ -2,6 +2,7 @@ # Copyright (C) 2008-2010 J. Alexander Treuman # Copyright (C) 2012-2019 Kaliko Jack # Copyright (C) 2019 Naglis Jonaitis +# Copyright (C) 2019 Bart Van Loon # # python-musicpd is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by @@ -29,9 +30,9 @@ ERROR_PREFIX = "ACK " SUCCESS = "OK" NEXT = "list_OK" VERSION = '0.4.4' - CONNECTION_TIMEOUT = 5 # seconds before a tcp connection attempt times out + def iterator_wrapper(func): """Decorator handling iterate option""" @wraps(func)