Blame bugzilla/__init__.py

Packit Service 4b33e2
# python-bugzilla - a Python interface to bugzilla using xmlrpclib.
Packit Service 4b33e2
#
Packit Service 4b33e2
# Copyright (C) 2007, 2008 Red Hat Inc.
Packit Service 4b33e2
# Author: Will Woods <wwoods@redhat.com>
Packit Service 4b33e2
#
Packit Service 4b33e2
# This program is free software; you can redistribute it and/or modify it
Packit Service 4b33e2
# under the terms of the GNU General Public License as published by the
Packit Service 4b33e2
# Free Software Foundation; either version 2 of the License, or (at your
Packit Service 4b33e2
# option) any later version.  See http://www.gnu.org/copyleft/gpl.html for
Packit Service 4b33e2
# the full text of the license.
Packit Service 4b33e2
Packit Service 4b33e2
from .apiversion import version, __version__
Packit Service 4b33e2
from .base import Bugzilla
Packit Service 4b33e2
from .transport import BugzillaError
Packit Service 4b33e2
from .rhbugzilla import RHBugzilla
Packit Service 4b33e2
from .oldclasses import (Bugzilla3, Bugzilla32, Bugzilla34, Bugzilla36,
Packit Service 4b33e2
        Bugzilla4, Bugzilla42, Bugzilla44,
Packit Service 4b33e2
        NovellBugzilla, RHBugzilla3, RHBugzilla4)
Packit Service 4b33e2
Packit Service 4b33e2
Packit Service 4b33e2
# This is the public API. If you are explicitly instantiating any other
Packit Service 4b33e2
# class, using some function, or poking into internal files, don't complain
Packit Service 4b33e2
# if things break on you.
Packit Service 4b33e2
__all__ = [
Packit Service 4b33e2
    "Bugzilla3", "Bugzilla32", "Bugzilla34", "Bugzilla36",
Packit Service 4b33e2
    "Bugzilla4", "Bugzilla42", "Bugzilla44",
Packit Service 4b33e2
    "NovellBugzilla",
Packit Service 4b33e2
    "RHBugzilla3", "RHBugzilla4", "RHBugzilla",
Packit Service 4b33e2
    'BugzillaError',
Packit Service 4b33e2
    'Bugzilla', "version",
Packit Service 4b33e2
]
Packit Service 4b33e2
Packit Service 4b33e2
Packit Service 4b33e2
# Clear all other locals() from the public API
Packit Service 4b33e2
for __sym in locals().copy():
Packit Service 4b33e2
    if __sym.startswith("__") or __sym in __all__:
Packit Service 4b33e2
        continue
Packit Service 4b33e2
    locals().pop(__sym)
Packit Service 4b33e2
locals().pop("__sym")