diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-21 21:55:02 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-21 21:55:02 +0200 |
| commit | e784c6d89265337decb35cd587e4281228d625f0 (patch) | |
| tree | 96f0559f19d01e522b0f1778be897f667da715d7 /apt | |
| parent | 1358664af2c27db4d7d62292680013e811f11750 (diff) | |
| download | python-apt-e784c6d89265337decb35cd587e4281228d625f0.tar.gz | |
apt/progress/old.py: Replace OpProgress.sub_op with OpProgress.subop.
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/progress/old.py | 6 |
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): |
