File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -55,29 +55,30 @@ def coerce(version):
5555 """ ,
5656 re .VERBOSE ,
5757 )
58-
58+
5959 match = BASEVERSION .search (version )
6060 if not match :
6161 return (None , version )
6262
6363 ver = {
64- key : 0 if value is None else value for key , value in match .groupdict ().items ()
64+ key : 0 if value is None else value for key , value
65+ in match .groupdict ().items ()
6566 }
6667 ver = semver .VersionInfo (** ver )
6768 rest = match .string [match .end () :] # noqa:E203
6869 return ver , rest
69-
70-
70+
71+
7172def compare_versions (new , old ):
7273 """
7374 Function to compare two versions.
74-
75+
7576 Parameters
7677 ----------
7778 new: str
78-
79+
7980 old: str
80-
81+
8182 Returns
8283 -------
8384 bool
@@ -92,7 +93,7 @@ def compare_versions(new, old):
9293 (outright == 0 ) and comparisons [1 ][0 ] >= comparisons [1 ][1 ]
9394 )
9495 )
95-
96+
9697
9798# If extensions (or modules to document with autodoc) are in another directory,
9899# add these directories to sys.path here. If the directory is relative to the
You can’t perform that action at this time.
0 commit comments