Merge branch 'master' of git@github.com:jodal/mopidy

This commit is contained in:
Johannes Knutsen 2009-12-25 16:19:43 +01:00
commit 258f6c62e9

View File

@ -7,12 +7,10 @@ from mopidy.backends.spotify import SpotifyBackend
logger = logging.getLogger('handler')
global _request_handlers
_request_handlers = {}
def register(pattern):
def decorator(func):
global _request_handlers
if pattern in _request_handlers:
raise ValueError(u'Tried to redefine handler for %s with %s' % (
pattern, func))