Skip to content

Commit 35ae0c2

Browse files
committed
Use module docstring instead of comment
1 parent b5c1dd9 commit 35ae0c2

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

easybuild/tools/loose_version.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
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

1214
import re
1315
from itertools import zip_longest

0 commit comments

Comments
 (0)