multimethod uses Spec() instead of parse_anonymous_spec()

- simplify logic in multimethod
- remove the requirement of multimethod invocations to walk up the stack.
This commit is contained in:
Todd Gamblin
2018-12-05 10:34:46 -06:00
committed by Greg Becker
parent 88cb11758b
commit 61b859193d
3 changed files with 12 additions and 22 deletions

View File

@@ -21,7 +21,7 @@ class Multimethod(MultimethodBase):
url = 'http://www.example.com/example-1.0.tar.gz'
#
# These functions are only valid for versions 1, 2, and 3.
# These functions are only valid for versions 1, 3, and 4.
#
@when('@1.0')
def no_version_2(self):