summaryrefslogtreecommitdiff
path: root/numpy/lib/_version.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/_version.py')
-rw-r--r--numpy/lib/_version.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/_version.py b/numpy/lib/_version.py
index 00e00e9a7..bfac5f814 100644
--- a/numpy/lib/_version.py
+++ b/numpy/lib/_version.py
@@ -15,7 +15,7 @@ class NumpyVersion():
"""Parse and compare numpy version strings.
NumPy has the following versioning scheme (numbers given are examples; they
- can be > 9) in principle):
+ can be > 9 in principle):
- Released version: '1.8.0', '1.8.1', etc.
- Alpha: '1.8.0a1', '1.8.0a2', etc.
@@ -54,7 +54,7 @@ class NumpyVersion():
def __init__(self, vstring):
self.vstring = vstring
- ver_main = re.match(r'\d\.\d+\.\d+', vstring)
+ ver_main = re.match(r'\d+\.\d+\.\d+', vstring)
if not ver_main:
raise ValueError("Not a valid numpy version string")