summaryrefslogtreecommitdiff
path: root/apt/__init__.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-01-15 15:22:12 +0100
committerJulian Andres Klode <jak@debian.org>2010-01-15 15:22:12 +0100
commit7bfefb84523645fe24d0e5603d56c23cf410328e (patch)
tree3965ce6e2e968a2facd5efa2e3ea4fb34c4140ff /apt/__init__.py
parent71aad7e28bbaf1ee8efdad77ebfb4e4c0fd0ec26 (diff)
parent52cca77b8179a7f625673f19cb132686c0d416c9 (diff)
downloadpython-apt-7bfefb84523645fe24d0e5603d56c23cf410328e.tar.gz
Merge debian-experimental.
Diffstat (limited to 'apt/__init__.py')
-rw-r--r--apt/__init__.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/apt/__init__.py b/apt/__init__.py
index 4b3e6bf2..677a625b 100644
--- a/apt/__init__.py
+++ b/apt/__init__.py
@@ -17,22 +17,21 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
# import the core of apt_pkg
+"""High-Level Interface for working with apt."""
import apt_pkg
-import sys
-import os
# import some fancy classes
from apt.package import Package
from apt.cache import Cache, ProblemResolver
-from apt.progress import (
- OpProgress, FetchProgress, InstallProgress, CdromProgress)
from apt.cdrom import Cdrom
-from apt_pkg import SizeToStr, TimeToStr, VersionCompare
+
+if apt_pkg._COMPAT_0_7:
+ from apt.progress.old import (OpProgress, FetchProgress, InstallProgress,
+ CdromProgress)
+ from apt_pkg import (size_to_str as SizeToStr, time_to_str as TimeToStr,
+ version_compare as VersionCompare)
# init the package system
apt_pkg.init()
-
-#import warnings
-#warnings.warn("apt API not stable yet", FutureWarning)
-#del warnings
+__all__ = ['Cache', 'Cdrom', 'Package']