diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-17 19:06:20 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-17 19:06:20 +0200 |
| commit | 9bd7c1dcf9942d6ce294aa5ac58d90d6c1aa9f51 (patch) | |
| tree | 86beb8d7ddbee1602deb5ffa9f267ab8a06a1c8f /apt/__init__.py | |
| parent | 769c1d5fa940e70ddb8ac55e8dd5ed8f05ab7e6e (diff) | |
| download | python-apt-9bd7c1dcf9942d6ce294aa5ac58d90d6c1aa9f51.tar.gz | |
apt: Use apt_pkg.gettext instead of Python's gettext.
Diffstat (limited to 'apt/__init__.py')
| -rw-r--r-- | apt/__init__.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/apt/__init__.py b/apt/__init__.py index 2ef8add3..a75218a8 100644 --- a/apt/__init__.py +++ b/apt/__init__.py @@ -18,8 +18,6 @@ # USA # import the core of apt_pkg """High-Level Interface for working with apt.""" -import locale - import apt_pkg # import some fancy classes @@ -30,15 +28,10 @@ from apt.cdrom import Cdrom 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, + 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() -locale.setlocale(locale.LC_ALL, '') -#import warnings -#warnings.warn("apt API not stable yet", FutureWarning) -#del warnings __all__ = ['Cache', 'Cdrom', 'Package'] |
