diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-19 15:05:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-19 16:15:47 +0000 |
commit | b686174b07bd56af4e5ffaa23c24f27f417fc305 (patch) | |
tree | 1ce335620d99341d94e88c159c0b9b0f6f0de5a0 /version.py | |
parent | Adding debian version 2.0.3-4. (diff) | |
download | deluge-b686174b07bd56af4e5ffaa23c24f27f417fc305.tar.xz deluge-b686174b07bd56af4e5ffaa23c24f27f417fc305.zip |
Merging upstream version 2.1.1 (Closes: #1026291).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'version.py')
-rwxr-xr-x | version.py | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # Authors: Douglas Creager <dcreager@dcreager.net> # Calum Lind <calumlind@gmail.com> # @@ -31,8 +30,6 @@ # include RELEASE-VERSION # -from __future__ import print_function, unicode_literals - import os import subprocess @@ -58,9 +55,9 @@ def call_git_describe(prefix='', suffix=''): def get_version(prefix='deluge-', suffix='.dev0'): try: - with open(VERSION_FILE, 'r') as f: + with open(VERSION_FILE) as f: release_version = f.readline().strip() - except IOError: + except OSError: release_version = None version = call_git_describe(prefix, suffix) |