From e592262da87282491ca58f060b246fb63c8391cc Mon Sep 17 00:00:00 2001 From: George Hartzell Date: Sat, 18 May 2019 09:39:23 -0700 Subject: Typos: funciton, woudl, hm,... (#11511) --- lib/spack/spack/version.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/spack/spack/version.py b/lib/spack/spack/version.py index 5abe6b84e2..0235ce0182 100644 --- a/lib/spack/spack/version.py +++ b/lib/spack/spack/version.py @@ -38,7 +38,7 @@ __all__ = ['Version', 'VersionRange', 'VersionList', 'ver'] # Valid version characters VALID_VERSION = r'[A-Za-z0-9_.-]' -# Infinity-like versions. The order in the list implies the comparision rules +# Infinity-like versions. The order in the list implies the comparison rules infinity_versions = ['develop', 'master', 'head', 'trunk'] @@ -467,7 +467,7 @@ class VersionRange(object): This is essentially the same as overlaps(), but overlaps assumes that its arguments are specific. That is, 4.7 is interpreted as - 4.7.0.0.0.0... . This funciton assumes that 4.7 woudl be satisfied + 4.7.0.0.0.0... . This function assumes that 4.7 would be satisfied by 4.7.3.5, etc. Rationale: @@ -549,7 +549,7 @@ class VersionRange(object): # This is tricky: # 1.6.5 in 1.6 = True (1.6.5 is more specific) # 1.6 < 1.6.5 = True (lexicographic) - # Should 1.6 NOT be less than 1.6.5? Hm. + # Should 1.6 NOT be less than 1.6.5? Hmm. # Here we test (not end in other.end) first to avoid paradox. if other.end is not None and end not in other.end: if other.end < end or other.end in end: -- cgit v1.2.3-60-g2f50