Removed unneeded import of errors from plugable.py

This commit is contained in:
Jason Gerard DeRose
2009-01-03 18:08:39 -07:00
parent bb6e9cfe9f
commit 912ab9e68b

View File

@@ -33,7 +33,6 @@ import logging
import os import os
from os import path from os import path
import subprocess import subprocess
import errors
import errors2 import errors2
from config import Env from config import Env
import util import util
@@ -283,7 +282,7 @@ class Plugin(ReadOnly):
Call ``executable`` with ``args`` using subprocess.call(). Call ``executable`` with ``args`` using subprocess.call().
If the call exits with a non-zero exit status, If the call exits with a non-zero exit status,
`ipalib.errors.SubprocessError` is raised, from which you can retrieve `ipalib.errors2.SubprocessError` is raised, from which you can retrieve
the exit code by checking the SubprocessError.returncode attribute. the exit code by checking the SubprocessError.returncode attribute.
This method does *not* return what ``executable`` sent to stdout... for This method does *not* return what ``executable`` sent to stdout... for
@@ -450,10 +449,10 @@ class Registrar(DictProxy):
""" """
Iterates through allowed bases that ``klass`` is a subclass of. Iterates through allowed bases that ``klass`` is a subclass of.
Raises `errors.SubclassError` if ``klass`` is not a subclass of any Raises `errors2.PluginSubclassError` if ``klass`` is not a subclass of
allowed base. any allowed base.
:param klass: The class to find bases for. :param klass: The plugin class to find bases for.
""" """
assert inspect.isclass(klass) assert inspect.isclass(klass)
found = False found = False