summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-20 00:07:36 +0200
committerhut <hut@lavabit.com>2010-04-20 00:07:36 +0200
commit142a5e6387fbdbb6aed566c159942eede9c319c5 (patch)
tree3aceaafaa479f3fc04001aa8e2cd27d6aab21007
parenta3d5ed6ff40c13b8cec3ac145c4ea4e4f371f2f0 (diff)
downloadranger-142a5e6387fbdbb6aed566c159942eede9c319c5.tar.gz
ext.shutil_generatorized: little optimization
-rw-r--r--ranger/ext/shutil_generatorized.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/ext/shutil_generatorized.py b/ranger/ext/shutil_generatorized.py
index 07455c4f..0a736351 100644
--- a/ranger/ext/shutil_generatorized.py
+++ b/ranger/ext/shutil_generatorized.py
@@ -46,8 +46,8 @@ def _samefile(src, dst):
             return False
 
     # All other platforms: check for same pathname.
-    return (os.path.normcase(os.path.abspath(src)) ==
-            os.path.normcase(os.path.abspath(dst)))
+    return (os.path.normcase(abspath(src)) ==
+            os.path.normcase(abspath(dst)))
 
 def copyfile(src, dst):
     """Copy data from src to dst"""