diff mercurial/patch.py @ 12032:ad787252fed6

util: remove lexists, Python 2.4 introduced os.path.lexists
author Martin Geisler <mg@lazybytes.net>
date Wed, 25 Aug 2010 16:23:32 +0200
parents 75de514a50f3
children fddacca3202e
line wrap: on
line diff
--- a/mercurial/patch.py	Wed Aug 25 13:40:46 2010 +0200
+++ b/mercurial/patch.py	Wed Aug 25 16:23:32 2010 +0200
@@ -918,7 +918,7 @@
     nulla = afile_orig == "/dev/null"
     nullb = bfile_orig == "/dev/null"
     abase, afile = pathstrip(afile_orig, strip)
-    gooda = not nulla and util.lexists(afile)
+    gooda = not nulla and os.path.lexists(afile)
     bbase, bfile = pathstrip(bfile_orig, strip)
     if afile == bfile:
         goodb = gooda