summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-11 05:47:00 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-11 05:47:00 +0000
commit335b3da47c23b9c84d65efce793dd0fa8f69c679 (patch)
treec952a117bd28261a960ed6c071cb42f6e26e7cc0 /bin/archive-conf
parentFor compatibility with python-3.0, use isinstance() instead of type(). (diff)
downloadportage-multirepo-335b3da47c23b9c84d65efce793dd0fa8f69c679.tar.gz
portage-multirepo-335b3da47c23b9c84d65efce793dd0fa8f69c679.tar.bz2
portage-multirepo-335b3da47c23b9c84d65efce793dd0fa8f69c679.zip
For python-3.0 compatibility, raise a real exception instead of a string.
(trunk r12635) svn path=/main/branches/2.1.6/; revision=12907
Diffstat (limited to 'bin/archive-conf')
-rwxr-xr-xbin/archive-conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/archive-conf b/bin/archive-conf
index caf8fa2c..04c6ce41 100755
--- a/bin/archive-conf
+++ b/bin/archive-conf
@@ -86,8 +86,8 @@ def archive_conf():
md5_match_hash[conf] = conf
todo_cnt -= 1
if todo_cnt == 0:
- raise "Break"
- except "Break":
+ raise StopIteration()
+ except StopIteration:
pass
for conf in args: