X-Git-Url: https://git.kaliko.me/?p=python-musicpd.git;a=blobdiff_plain;f=musicpd.py;h=383ba0983568c93e5bdfc26633059474b0cd6115;hp=e8f786324d5e24f9850512dccc5c2fdda51acab0;hb=56b5db14966cd8c49caa4912405d2d932ab51475;hpb=8499542b553b5184adbb839240874c5551dbb1ab 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)