summaryrefslogtreecommitdiff
path: root/apt/package.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-01-15 15:42:44 +0100
committerJulian Andres Klode <jak@debian.org>2010-01-15 15:42:44 +0100
commit6dae07e834445c193f392cf53a252b83c68f2bcd (patch)
treed660e8ad24c9c1bf028526606ddc02b7433dcf09 /apt/package.py
parentfec0cfe1617ccfcbb7b291ba00dedacdd3f133f7 (diff)
downloadpython-apt-6dae07e834445c193f392cf53a252b83c68f2bcd.tar.gz
Make all class-level constants have uppercase names.
Diffstat (limited to 'apt/package.py')
-rw-r--r--apt/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt/package.py b/apt/package.py
index 315a7589..8171f57d 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -500,7 +500,7 @@ class Version(object):
self.size, base, destfile=destfile)
acq.run()
- if acqfile.status != acqfile.stat_done:
+ if acqfile.status != acqfile.STAT_DONE:
raise FetchError("The item %r could not be fetched: %s" %
(acqfile.destfile, acqfile.error_text))
print self._records.filename
@@ -548,7 +548,7 @@ class Version(object):
acq.run()
for item in acq.items:
- if item.status != item.stat_done:
+ if item.status != item.STAT_DONE:
raise FetchError("The item %r could not be fetched: %s" %
(item.destfile, item.error_text))