fixed for fedora

This commit is contained in:
Tim Bentley 2013-07-18 18:42:51 +02:00 committed by Andreas Preikschat
parent 9c42011541
commit c6f29ca53d
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4 # vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4

View File

@ -196,7 +196,7 @@ def check_latest_version(current_version):
req.add_header(u'User-Agent', u'OpenLP/%s' % current_version[u'full']) req.add_header(u'User-Agent', u'OpenLP/%s' % current_version[u'full'])
remote_version = None remote_version = None
try: try:
remote_version = unicode(urllib2.urlopen(req, None).read()).strip() remote_version = unicode(urllib2.urlopen(req, None).read().decode()).strip()
except IOError: except IOError:
log.exception(u'Failed to download the latest OpenLP version file') log.exception(u'Failed to download the latest OpenLP version file')
if remote_version: if remote_version: