r351 - in branches/rewrite: . src
Otavio Salvador
partial-mirror-devel@lists.alioth.debian.org
Thu, 18 Nov 2004 11:56:17 -0700
Author: otavio
Date: Thu Nov 18 11:56:17 2004
New Revision: 351
Modified:
branches/rewrite/ (props changed)
branches/rewrite/src/PackageList.py
Log:
r340@nurf: otavio | 2004-11-18T18:53:55.195589Z
Call Exception constructors and remove unused vars.
Modified: branches/rewrite/src/PackageList.py
==============================================================================
--- branches/rewrite/src/PackageList.py (original)
+++ branches/rewrite/src/PackageList.py Thu Nov 18 11:56:17 2004
@@ -27,6 +27,7 @@
package -- The name of package.
"""
def __init__(self, package):
+ Exception.__init__(self)
self.package = package
class PackageDoesNotExist(Exception):
@@ -37,6 +38,7 @@
package -- The name of package.
"""
def __init__(self, package):
+ Exception.__init__(self)
self.package = package
class PackageList:
@@ -172,12 +174,12 @@
for i in d[k]:
try:
packages.add(i)
- except PackageAlreadyExists, e:
+ except PackageAlreadyExists:
pass # We possible will repeat packages
else:
try:
packages.add(d[k])
- except PackageAlreadyExists, e:
+ except PackageAlreadyExists:
pass # We possible will repeat packages
return packages