summaryrefslogtreecommitdiffstats
path: root/eos_downloader/eos.py
diff options
context:
space:
mode:
Diffstat (limited to 'eos_downloader/eos.py')
-rw-r--r--eos_downloader/eos.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/eos_downloader/eos.py b/eos_downloader/eos.py
index 716992f..ada0eb6 100644
--- a/eos_downloader/eos.py
+++ b/eos_downloader/eos.py
@@ -137,8 +137,7 @@ class EOSDownloader(ObjectDownloader):
selected_branch = EosVersion.from_str(BASE_BRANCH_STR)
for branch in self._get_branches(with_rtype=rtype):
branch = EosVersion.from_str(branch)
- if branch > selected_branch:
- selected_branch = branch
+ selected_branch = max(selected_branch, branch)
return selected_branch
def get_eos_versions(