From 5fbf5c55302bcbe044882f4947c9e480f288113d Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Fri, 25 Dec 2009 16:16:28 +0100 Subject: [PATCH] Remove 'global' statements --- mopidy/handler.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/mopidy/handler.py b/mopidy/handler.py index d8575741..e11a935c 100644 --- a/mopidy/handler.py +++ b/mopidy/handler.py @@ -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))