summaryrefslogtreecommitdiff
path: root/apt/debfile.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-08-31 15:34:04 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-08-31 15:34:04 +0200
commit3ec4a3676de540d05286f3bdc41f00a799244f3b (patch)
tree460e9e05ba521082d5f901fdd1452cbc9bf9c329 /apt/debfile.py
parent8cd715add7f85fb67cc30e42449d83a2ef7cf0bd (diff)
parent96476d01e881f52d53a70f1ae700594a0f321056 (diff)
downloadpython-apt-3ec4a3676de540d05286f3bdc41f00a799244f3b.tar.gz
* add "provides" property to the apt.Version objects
* apt/debfile.py: - fix error when reading binary content and add regresion test
Diffstat (limited to 'apt/debfile.py')
-rw-r--r--apt/debfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt/debfile.py b/apt/debfile.py
index 9bf27da3..f4a31379 100644
--- a/apt/debfile.py
+++ b/apt/debfile.py
@@ -512,7 +512,7 @@ class DebPackage(object):
return sorted(content)
@staticmethod
- def to_hex(self, in_data):
+ def to_hex(in_data):
hex = ""
for (i, c) in enumerate(in_data):
if i%80 == 0:
@@ -521,7 +521,7 @@ class DebPackage(object):
return hex
@staticmethod
- def to_strish(self, in_data):
+ def to_strish(in_data):
s = ""
for c in in_data:
if ord(c) < 10 or ord(c) > 127: