From f29cb975123573960b147bca06fc294c72f272b9 Mon Sep 17 00:00:00 2001 From: "George Silvis, III" Date: Thu, 18 Aug 2016 16:28:23 -0400 Subject: [PATCH] Fix docstring for get_memoization_decorator The example usage did not match the current signature of the function. Change-Id: I1c1022d53942ae5f5be36b377a68b4a154381fc1 --- oslo_cache/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oslo_cache/core.py b/oslo_cache/core.py index 63d1d1df..d0a5a5e3 100644 --- a/oslo_cache/core.py +++ b/oslo_cache/core.py @@ -313,8 +313,8 @@ def get_memoization_decorator(conf, region, group, expiration_group=None): import oslo_cache.core - MEMOIZE = oslo_cache.core.get_memoization_decorator(conf, - group='group1') + MEMOIZE = oslo_cache.core.get_memoization_decorator( + conf, region, group='group1') @MEMOIZE def function(arg1, arg2): @@ -322,7 +322,7 @@ def get_memoization_decorator(conf, region, group, expiration_group=None): ALTERNATE_MEMOIZE = oslo_cache.core.get_memoization_decorator( - conf, group='group2', expiration_group='group3') + conf, region, group='group2', expiration_group='group3') @ALTERNATE_MEMOIZE def function2(arg1, arg2):