Fix OSC plugin global declaration

TrivialFix

Change-Id: I63f9eb8ab72799613387656d1edef50c14d579fd
This commit is contained in:
Adit Sarfaty 2017-03-09 14:58:09 +02:00 committed by Kobi Samoray
parent 0a62f86ffa
commit b7b7f9f685

View File

@ -21,6 +21,7 @@ cached_extensions = None
def get_extensions(client_manager):
"""Return a list of all current extensions aliases"""
# Return previously calculated results
global cached_extensions
if cached_extensions is not None:
return cached_extensions
# Get supported extensions from the manager
@ -31,6 +32,5 @@ def get_extensions(client_manager):
s, ('Alias',), formatters={})
extensions.append(prop[0])
# Save the results in the global cache
global cached_extensions
cached_extensions = extensions
return extensions