Commit b52349b5 authored by bwarsaw's avatar bwarsaw

get_switchboard(): Code cleanup. _sbcache does not need to be

declared global.
parent 934489a0
# Copyright (C) 2001 by the Free Software Foundation, Inc.
# Copyright (C) 2001,2002 by the Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
......@@ -22,6 +22,5 @@ from Mailman.Queue.Switchboard import Switchboard
_sbcache = {}
def get_switchboard(qdir):
global _sbcache
switchboard = _sbcache.setdefault(qdir, Switchboard(qdir))
return switchboard
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment