diff hgext/convert/gnuarch.py @ 12344:b6173aee4a47 stable

Use lexists() instead of exists() where appropriate
author Patrick Mezard <pmezard@gmail.com>
date Mon, 20 Sep 2010 21:46:56 +0200
parents 3145951e50fe
children 4030630fb59c
line wrap: on
line diff
--- a/hgext/convert/gnuarch.py	Mon Sep 20 21:46:39 2010 +0200
+++ b/hgext/convert/gnuarch.py	Mon Sep 20 21:46:56 2010 +0200
@@ -138,7 +138,7 @@
             raise util.Abort(_('internal calling inconsistency'))
 
         # Raise IOError if necessary (i.e. deleted files).
-        if not os.path.exists(os.path.join(self.tmppath, name)):
+        if not os.path.lexists(os.path.join(self.tmppath, name)):
             raise IOError
 
         return self._getfile(name, rev)