diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-08-31 15:18:42 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-08-31 15:18:42 +0200 |
| commit | 96476d01e881f52d53a70f1ae700594a0f321056 (patch) | |
| tree | 8c423fa6bfcc3e49cfbb36a8686187b8578faa45 /apt/debfile.py | |
| parent | 306d93a0257ddb2442d03df05952ce5bacbc5802 (diff) | |
| download | python-apt-96476d01e881f52d53a70f1ae700594a0f321056.tar.gz | |
* apt/debfile.py:
- fix error when reading binary content and add regresion test
Diffstat (limited to 'apt/debfile.py')
| -rw-r--r-- | apt/debfile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt/debfile.py b/apt/debfile.py index 33f0f04d..73f7d88e 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: |
