continue is only for loops
authorMarius Mauch <genone@gentoo.org>
Thu, 11 Jan 2007 09:07:22 +0000 (09:07 -0000)
committerMarius Mauch <genone@gentoo.org>
Thu, 11 Jan 2007 09:07:22 +0000 (09:07 -0000)
svn path=/main/trunk/; revision=5550

pym/portage_util.py

index c7455a309cc1522259d93fbe8abea930cb08ddec..2d92fc04804ffa801819c51f91bcb2af2c42bc9c 100644 (file)
@@ -229,7 +229,7 @@ def grablines(myfilename,recursive=0):
        mylines=[]
        if recursive and os.path.isdir(myfilename):
                if myfilename in ["RCS", "CVS", "SCCS"]:
-                       continue
+                       return mylines
                dirlist = os.listdir(myfilename)
                dirlist.sort()
                for f in dirlist: