summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/semantic_version/base.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/semantic_version/base.py b/src/semantic_version/base.py
index d776143..bec1a79 100644
--- a/src/semantic_version/base.py
+++ b/src/semantic_version/base.py
@@ -324,8 +324,9 @@ class Spec(object):
class SpecList(object):
- def __init__(self, specs_string):
- self.specs = self.parse(specs_string)
+ def __init__(self, *specs_strings):
+ subspecs = [self.parse(spec) for spec in specs_strings]
+ self.specs = sum(subspecs, ())
@classmethod
def parse(self, specs_string):