~ubuntu-branches/ubuntu/wily/sessioninstaller/wily-proposed

« back to all changes in this revision

Viewing changes to sessioninstaller/gstinstaller.py

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2015-08-09 12:50:08 UTC
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: package-import@ubuntu.com-20150809125008-yv3g067gk3k1drzo
Tags: upstream-0.20+bzr150
ImportĀ upstreamĀ versionĀ 0.20+bzr150

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
 
1
#!/usr/bin/env python3
2
2
# -*- coding: utf-8 -*-
3
3
"""gstinstaller - install GStreamer components via PackageKit session service"""
4
4
# Copyright (C) 2010 Sebastian Heinlein <devel@glatzor.de>
27
27
 
28
28
import dbus
29
29
 
30
 
from core import PACKAGEKIT_MODIFY_DBUS_INTERFACE, \
 
30
from .core import PACKAGEKIT_MODIFY_DBUS_INTERFACE, \
31
31
                 PACKAGEKIT_DBUS_PATH, \
32
32
                 PACKAGEKIT_DBUS_SERVICE
33
 
import errors
 
33
from . import errors
34
34
 
35
35
logging.basicConfig(format="%(levelname)s:%(message)s")
36
36
log = logging.getLogger("GStreamerInstaller")
101
101
    except errors.ModifyNoPackagesFound:
102
102
        log.critical("Could not find any packages to operate on")
103
103
        sys.exit(1)
104
 
    except Exception, error:
 
104
    except Exception as error:
105
105
        log.exception(error)
106
106
        sys.exit(2)
107
107
    log.info("Finished succesfully")