summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-21 21:55:02 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-21 21:55:02 +0200
commite784c6d89265337decb35cd587e4281228d625f0 (patch)
tree96f0559f19d01e522b0f1778be897f667da715d7
parent1358664af2c27db4d7d62292680013e811f11750 (diff)
downloadpython-apt-e784c6d89265337decb35cd587e4281228d625f0.tar.gz
apt/progress/old.py: Replace OpProgress.sub_op with OpProgress.subop.
-rw-r--r--apt/progress/old.py6
1 files changed, 3 insertions, 3 deletions
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):