summaryrefslogtreecommitdiff
path: root/apt/progress
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-17 16:14:56 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-17 16:14:56 +0200
commit837e2fd927906c229801e41a5effbf95f9c6a106 (patch)
treeb13988662ab193253502c534c26533ed8efd0fba /apt/progress
parentb34e27d4ebaf325df6d82fde17b28cf9a008dbfc (diff)
downloadpython-apt-837e2fd927906c229801e41a5effbf95f9c6a106.tar.gz
apt/progress: Fix apt.progress with COMPAT_0_7
Diffstat (limited to 'apt/progress')
-rw-r--r--apt/progress/__init__.py13
-rw-r--r--apt/progress/old.py6
2 files changed, 6 insertions, 13 deletions
diff --git a/apt/progress/__init__.py b/apt/progress/__init__.py
index 67880903..c75c368b 100644
--- a/apt/progress/__init__.py
+++ b/apt/progress/__init__.py
@@ -17,13 +17,8 @@
"""Progress reporting."""
import apt_pkg
-#from apt.progress.text import AcquireProgress as TextAcquireProgress
-#from apt.progress.text import OpProgress as TextOpProgress
-
-__all__ = [] #'TextAcquireProgress', 'TextOpProgress']
-
if apt_pkg._COMPAT_0_7:
- import apt.progress.old
- from apt.progress.old import *
-
- __all__ += apt.progress.old.__all__
+ from apt.progress.old import (CdromProgress, DpkgInstallProgress,
+ DumbInstallProgress, FetchProgress,
+ InstallProgress, OpProgress,
+ OpTextProgress, TextFetchProgress)
diff --git a/apt/progress/old.py b/apt/progress/old.py
index 3c5d4588..d4ff5815 100644
--- a/apt/progress/old.py
+++ b/apt/progress/old.py
@@ -18,7 +18,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-"""progress reporting classes.
+"""Deprecated progress reporting classes.
This module provides classes for progress reporting. They can be used with
e.g., for reporting progress on the cache opening process, the cache update
@@ -36,9 +36,7 @@ import apt_pkg
from apt.deprecation import AttributeDeprecatedBy, function_deprecated_by
-__all__ = ('CdromProgress', 'DpkgInstallProgress', 'DumbInstallProgress',
- 'FetchProgress', 'InstallProgress', 'OpProgress', 'OpTextProgress',
- 'TextFetchProgress')
+__all__ = []
class OpProgress(object):