From c18482b4a81e6bd7b46290688451d7b7bcead99c Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 21 May 2016 10:34:46 -0400 Subject: Add docstring --- setuptools/command/easy_install.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'setuptools/command/easy_install.py') diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 39afb653..774f0f21 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -76,6 +76,12 @@ def is_64bit(): def samefile(p1, p2): + """ + Determine if two paths reference the same file. + + Augments os.path.samefile to work on Windows and + suppresses errors if the path doesn't exist. + """ both_exist = os.path.exists(p1) and os.path.exists(p2) use_samefile = hasattr(os.path, 'samefile') and both_exist if use_samefile: -- cgit v1.2.1