summaryrefslogtreecommitdiff
path: root/apt/cache.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-17 19:06:20 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-17 19:06:20 +0200
commit9bd7c1dcf9942d6ce294aa5ac58d90d6c1aa9f51 (patch)
tree86beb8d7ddbee1602deb5ffa9f267ab8a06a1c8f /apt/cache.py
parent769c1d5fa940e70ddb8ac55e8dd5ed8f05ab7e6e (diff)
downloadpython-apt-9bd7c1dcf9942d6ce294aa5ac58d90d6c1aa9f51.tar.gz
apt: Use apt_pkg.gettext instead of Python's gettext.
Diffstat (limited to 'apt/cache.py')
-rw-r--r--apt/cache.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/apt/cache.py b/apt/cache.py
index 6e11d215..9982559b 100644
--- a/apt/cache.py
+++ b/apt/cache.py
@@ -21,19 +21,15 @@
import os
import weakref
-from gettext import dgettext
import apt_pkg
from apt import Package
+from apt_pkg import gettext as _
from apt.deprecation import (AttributeDeprecatedBy, function_deprecated_by,
deprecated_args)
import apt.progress.text
-def _(msg):
- return dgettext('python-apt', msg)
-
-
class FetchCancelledException(IOError):
"""Exception that is thrown when the user cancels a fetch operation."""