-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle bad version numbers gracefully
Pre-compile the regexp for a valid version number, and check args[0] against it before it fails later in vercmp(). Note that we could easily use .match() instead of .search(), since the regexp has a start-of-line anchor in it, but this is a bit more verbose.
- Loading branch information
Showing
2 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
from distutils.core import setup | ||
|
||
setup(name='getcluster', | ||
version='10.2.1', | ||
version='10.2.2', | ||
author='Debathena Project', | ||
author_email='[email protected]', | ||
scripts=['getcluster'], | ||
|