From 750c50bd08d909b5802f892c88441000609183c0 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 5 Jul 2010 18:28:48 +0200 Subject: apt/debfile.py: make to_{hex,strish} staticmethods --- apt/debfile.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apt/debfile.py') diff --git a/apt/debfile.py b/apt/debfile.py index 81cd1dd2..06854cf2 100644 --- a/apt/debfile.py +++ b/apt/debfile.py @@ -506,6 +506,7 @@ class DebPackage(object): content.append(name) return sorted(content) + @staticmethod def to_hex(self, in_data): hex = "" for (i, c) in enumerate(in_data): @@ -514,6 +515,7 @@ class DebPackage(object): hex += "%2.2x " % ord(c) return hex + @staticmethod def to_strish(self, in_data): s = "" for c in in_data: -- cgit v1.2.3