diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2010-04-11 01:39:31 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2010-04-11 01:39:31 +0200 |
commit | d9a7cd1da64da57bea05e5b234b9d9c6fea7f911 (patch) | |
tree | 65955560af923d5fc5a6517f8362903f840d13ee /portato/backend/__init__.py | |
parent | 3c52ca58438e77d791a5cd5a2e3e0427445e93c2 (diff) | |
download | portato-d9a7cd1da64da57bea05e5b234b9d9c6fea7f911.tar.gz portato-d9a7cd1da64da57bea05e5b234b9d9c6fea7f911.tar.bz2 portato-d9a7cd1da64da57bea05e5b234b9d9c6fea7f911.zip |
applied 2to3 and fixed the result
Diffstat (limited to 'portato/backend/__init__.py')
-rw-r--r-- | portato/backend/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/portato/backend/__init__.py b/portato/backend/__init__.py index 5f32818..5fb716e 100644 --- a/portato/backend/__init__.py +++ b/portato/backend/__init__.py @@ -10,7 +10,7 @@ # # Written by René 'Necoro' Neumann <necoro@necoro.net> -from __future__ import absolute_import + from ..helper import debug from .system_interface import SystemInterface @@ -21,7 +21,7 @@ class _Package (object): whether an object is a package. It cannot use the normal Package class as this results in cyclic dependencies.""" def __init__ (self): - raise TypeError, "Calling __init__ on portato.backend._Package objects is not allowed." + raise TypeError("Calling __init__ on portato.backend._Package objects is not allowed.") def is_package(what): return isinstance(what, _Package) @@ -65,6 +65,6 @@ class SystemWrapper (SystemInterface): from .portage import PortageSystem cls.__wrapped_sys = PortageSystem () else: - raise InvalidSystemError, cls.__system + raise InvalidSystemError(cls.__system) system = SystemWrapper() |