diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-08-31 15:34:04 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-08-31 15:34:04 +0200 |
| commit | 3ec4a3676de540d05286f3bdc41f00a799244f3b (patch) | |
| tree | 460e9e05ba521082d5f901fdd1452cbc9bf9c329 /apt/debfile.py | |
| parent | 8cd715add7f85fb67cc30e42449d83a2ef7cf0bd (diff) | |
| parent | 96476d01e881f52d53a70f1ae700594a0f321056 (diff) | |
| download | python-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.py | 4 |
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: |
