summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-08-31 15:31:26 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-08-31 15:31:26 +0200
commit4b91eac101b839c188835aa0e8d5284e32c6bdc1 (patch)
treeaaf413313dcb3b18b99e627fc760223cf449cd13 /apt
parentd16f52e874378f1ebf1fe0b2491585b46bfe2e55 (diff)
downloadpython-apt-4b91eac101b839c188835aa0e8d5284e32c6bdc1.tar.gz
* cherry pick debfile fix from lp:~mvo/python-apt/mvo (402..405):
* apt/debfile.py: - fix error when reading binary content and add regresion test
Diffstat (limited to 'apt')
-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: