From e784c6d89265337decb35cd587e4281228d625f0 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 21 Jul 2009 21:55:02 +0200 Subject: apt/progress/old.py: Replace OpProgress.sub_op with OpProgress.subop. --- apt/progress/old.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apt') diff --git a/apt/progress/old.py b/apt/progress/old.py index 63fc5d2e..05597481 100644 --- a/apt/progress/old.py +++ b/apt/progress/old.py @@ -47,7 +47,7 @@ class OpProgress(object): def __init__(self): self.op = None - self.sub_op = None + self.subop = None def update(self, percent): """Called periodically to update the user interface.""" @@ -56,7 +56,7 @@ class OpProgress(object): """Called once an operation has been completed.""" if apt_pkg._COMPAT_0_7: - subOp = AttributeDeprecatedBy('sub_op') + subOp = AttributeDeprecatedBy('subop') class OpTextProgress(OpProgress): @@ -67,7 +67,7 @@ class OpTextProgress(OpProgress): def update(self, percent): """Called periodically to update the user interface.""" - sys.stdout.write("\r%s: %.2i " % (self.sub_op, percent)) + sys.stdout.write("\r%s: %.2i " % (self.subop, percent)) sys.stdout.flush() def done(self): -- cgit v1.2.3