summaryrefslogtreecommitdiff
path: root/apt/cache.py
diff options
context:
space:
mode:
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."""