[py-svn] r45519 - py/trunk/py/bin

fijal at codespeak.net fijal at codespeak.net
Mon Aug 6 15:58:19 CEST 2007


Author: fijal
Date: Mon Aug  6 15:58:18 2007
New Revision: 45519

Modified:
   py/trunk/py/bin/py.lookup
Log:
Ignore non-existing files


Modified: py/trunk/py/bin/py.lookup
==============================================================================
--- py/trunk/py/bin/py.lookup	(original)
+++ py/trunk/py/bin/py.lookup	Mon Aug  6 15:58:18 2007
@@ -42,8 +42,11 @@
     string = args[0]
     if options.ignorecase:
         string = string.lower()
-    for x in curdir.visit('*.py', rec): 
-        s = x.read()
+    for x in curdir.visit('*.py', rec):
+        try:
+            s = x.read()
+        except py.error.ENOENT:
+            pass # whatever, probably broken link (ie emacs lock)
         searchs = s
         if options.ignorecase:
             searchs = s.lower()



More information about the pytest-commit mailing list