Whitespace.
This commit is contained in:
parent
db36bbf06c
commit
40ad64b000
1 changed files with 2 additions and 2 deletions
|
@ -281,7 +281,7 @@ class RPackageRequirement(Requirement):
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_str(cls, text):
|
def from_str(cls, text):
|
||||||
# TODO(jelmer): More complex parser
|
# TODO(jelmer): More complex parser
|
||||||
m = re.fullmatch(r'(.*) \(>= (.*)\)', text)
|
m = re.fullmatch(r'(.*)\s+\(>= (.*)\)', text)
|
||||||
if m:
|
if m:
|
||||||
return cls(m.group(1), m.group(2))
|
return cls(m.group(1), m.group(2))
|
||||||
m = re.fullmatch(r'([^ ]+)', text)
|
m = re.fullmatch(r'([^ ]+)', text)
|
||||||
|
@ -316,7 +316,7 @@ class OctavePackageRequirement(Requirement):
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_str(cls, text):
|
def from_str(cls, text):
|
||||||
# TODO(jelmer): More complex parser
|
# TODO(jelmer): More complex parser
|
||||||
m = re.fullmatch(r'(.*) \(>= (.*)\)', text)
|
m = re.fullmatch(r'(.*)\s+\(>= (.*)\)', text)
|
||||||
if m:
|
if m:
|
||||||
return cls(m.group(1), m.group(2))
|
return cls(m.group(1), m.group(2))
|
||||||
m = re.fullmatch(r'([^ ]+)', text)
|
m = re.fullmatch(r'([^ ]+)', text)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue