From c6f29ca53da43dd3e59df02deaa552ccd296466a Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Thu, 18 Jul 2013 18:42:51 +0200 Subject: [PATCH] fixed for fedora --- openlp.py | 2 +- openlp/core/utils/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openlp.py b/openlp.py index ae0b88168..1317cb770 100755 --- a/openlp.py +++ b/openlp.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4 diff --git a/openlp/core/utils/__init__.py b/openlp/core/utils/__init__.py index ed958a53f..53af2d83e 100644 --- a/openlp/core/utils/__init__.py +++ b/openlp/core/utils/__init__.py @@ -196,7 +196,7 @@ def check_latest_version(current_version): req.add_header(u'User-Agent', u'OpenLP/%s' % current_version[u'full']) remote_version = None try: - remote_version = unicode(urllib2.urlopen(req, None).read()).strip() + remote_version = unicode(urllib2.urlopen(req, None).read().decode()).strip() except IOError: log.exception(u'Failed to download the latest OpenLP version file') if remote_version: