diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2019-08-29 17:21:24 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2019-08-29 17:21:24 +0200 |
commit | 407d8b94706ff7758749c1825ddc5029a995114c (patch) | |
tree | aed4e33d58dbec8b183bee24bc15edff479aab18 /semantic_version | |
parent | 19836abac0d4f43467e61870ae9d268b0a610d4b (diff) | |
download | semantic-version-407d8b94706ff7758749c1825ddc5029a995114c.tar.gz |
Restore `Spec.specs` [Closes #79]
This attribute wasn't meant to be removed.
Diffstat (limited to 'semantic_version')
-rw-r--r-- | semantic_version/base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/semantic_version/base.py b/semantic_version/base.py index d7061c0..dc5e21e 100644 --- a/semantic_version/base.py +++ b/semantic_version/base.py @@ -1156,6 +1156,10 @@ class LegacySpec(SimpleSpec): expression = ','.join(expressions) super(LegacySpec, self).__init__(expression) + @property + def specs(self): + return list(self) + def __iter__(self): warnings.warn( "Iterating over the components of a SimpleSpec object will be removed in 3.0.", |