diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-17 17:15:38 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-17 17:15:38 +0200 |
| commit | 16c00d2037cde6da07b4988dbd35ebce0af56791 (patch) | |
| tree | 34edc7fec59d9b6ed2a410daf5bee7edd560801b /apt/__init__.py | |
| parent | 4e2bcf7853acd661bd9b56be7c774cc361fdebb4 (diff) | |
| download | python-apt-16c00d2037cde6da07b4988dbd35ebce0af56791.tar.gz | |
apt/__init__.py, apt/__cache__.py: Improve python-apt localization.
Diffstat (limited to 'apt/__init__.py')
| -rw-r--r-- | apt/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apt/__init__.py b/apt/__init__.py index ec7103a1..2ef8add3 100644 --- a/apt/__init__.py +++ b/apt/__init__.py @@ -18,6 +18,8 @@ # USA # import the core of apt_pkg """High-Level Interface for working with apt.""" +import locale + import apt_pkg # import some fancy classes @@ -28,15 +30,13 @@ from apt.cdrom import Cdrom if apt_pkg._COMPAT_0_7: from apt.progress.old import (OpProgress, FetchProgress, InstallProgress, CdromProgress) - -if apt_pkg._COMPAT_0_7: 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) |
