Skip to content

Commit a5cf87d

Browse files
tomschrtlaferriere
andauthored
Apply suggestions from code review
Thanks to Thomas! 👍 Co-authored-by: Thomas Laferriere <t.laferriere@hotmail.ca>
1 parent 6ae4839 commit a5cf87d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ A Python module for `semantic versioning`_. Simplifies comparing versions.
1111
1212
.. note::
1313

14-
This project works for Python 3.5 and greater only. If you are
14+
This project works for Python 3.6 and greater only. If you are
1515
looking for a compatible version for Python 2, use the
1616
maintenance branch |MAINT|_.
1717

18-
The last version of semver which supports Python 2.7 and 3.4 will be
18+
The last version of semver which supports Python 2.7 to 3.5 will be
1919
2.11.x. However, keep in mind, version 2.11.x is frozen: no new
2020
features nor backports will be integrated.
2121

semver.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,8 @@ def compare(self, other):
445445
other = cls(*other)
446446
elif not isinstance(other, cls):
447447
raise TypeError(
448-
(
449-
"Expected str, bytes, dict, tuple, list, or {} instance, "
450-
"but got {}"
451-
).format(cls.__name__, type(other))
448+
f"Expected str, bytes, dict, tuple, list, or {cls.__name__} instance, " \
449+
f"but got {type(other)}"
452450
)
453451

454452
v1 = self.to_tuple()[:3]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy