File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change 1- # This file contains the LooseVersion class based on the class with the same name
2- # as present in Python 3.7.4 distutils.
3- # The original class is licensed under the Python Software Foundation License Version 2.
4- # It was slightly simplified as needed to make it shorter and easier to read.
5- # In particular the following changes were made:
6- # - Subclass object directly instead of abstract Version class
7- # - Fully init the class in the constructor removing the parse method
8- # - Always set self.vstring and self.version
9- # - Shorten the comparison operators as the NotImplemented case doesn't apply anymore
10- # - Changes to documentation and formatting
1+ """
2+ This file contains the LooseVersion class based on the class with the same name
3+ as present in Python 3.7.4 distutils.
4+ The original class is licensed under the Python Software Foundation License Version 2.
5+ It was slightly simplified as needed to make it shorter and easier to read.
6+ In particular the following changes were made:
7+ - Subclass object directly instead of abstract Version class
8+ - Fully init the class in the constructor removing the parse method
9+ - Always set self.vstring and self.version
10+ - Shorten the comparison operators as the NotImplemented case doesn't apply anymore
11+ - Changes to documentation and formatting
12+ """
1113
1214import re
1315from itertools import zip_longest
You can’t perform that action at this time.
0 commit comments