summaryrefslogtreecommitdiffstats
path: root/version.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-19 15:05:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-19 15:05:49 +0000
commitd395bd510fa4f4376dc5237ab2f8d190a920d35d (patch)
tree3e3b16b44064938be801aede14381562bae14f6a /version.py
parentAdding upstream version 2.0.3. (diff)
downloaddeluge-a442edfa553d906131bfbb00a015adb3f52719d7.tar.xz
deluge-a442edfa553d906131bfbb00a015adb3f52719d7.zip
Adding upstream version 2.1.1.upstream/2.1.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'version.py')
-rwxr-xr-xversion.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/version.py b/version.py
index ff8f684..2609860 100755
--- a/version.py
+++ b/version.py
@@ -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)