Skip to content
Permalink
Browse files
修改获取不到providers的默认值从tuple到dict
  • Loading branch information
JoeCao committed Apr 8, 2015
1 parent e7a761a commit b7edce4826dca7e97004118c5d5b5a5088bc92ac
Showing 1 changed file with 1 addition and 1 deletion.
@@ -40,7 +40,7 @@ def __init__(self, interface):
add_provider_listener(interface)

def call(self, method, *args, **kwargs):
provides = service_provides.get(self.interface, ())
provides = service_provides.get(self.interface, {})
if len(provides) == 0:
return None
location, provide = random.choice(provides.items())

0 comments on commit b7edce4

Please sign in to comment.