summaryrefslogtreecommitdiff
path: root/apt/package.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/package.py
parent769c1d5fa940e70ddb8ac55e8dd5ed8f05ab7e6e (diff)
downloadpython-apt-9bd7c1dcf9942d6ce294aa5ac58d90d6c1aa9f51.tar.gz
apt: Use apt_pkg.gettext instead of Python's gettext.
Diffstat (limited to 'apt/package.py')
-rw-r--r--apt/package.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/apt/package.py b/apt/package.py
index 491571c2..1307ca3e 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -19,7 +19,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
"""Functionality related to packages."""
-import gettext
import httplib
import os
import sys
@@ -36,6 +35,7 @@ except ImportError:
import apt_pkg
import apt.progress.text
+from apt_pkg import gettext as _
from apt.deprecation import (function_deprecated_by, AttributeDeprecatedBy,
deprecated_args)
@@ -43,11 +43,6 @@ __all__ = ('BaseDependency', 'Dependency', 'Origin', 'Package', 'Record',
'Version')
-def _(string):
- """Return the translation of the string."""
- return gettext.dgettext("python-apt", string)
-
-
def _file_is_same(path, size, md5):
"""Return ``True`` if the file is the same."""
if (os.path.exists(path) and os.path.getsize(path) == size and