From e7671110bc865786ffe61cf9b92bf43c03759229 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 12 Jan 2015 12:25:53 +0100 Subject: Removed os.path.realpath invocations as they are not necessary if paths are used consistently. This will save IOPs, and make the code easier to understand (I suppose). Related to #224 --- git/test/lib/helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git/test/lib/helper.py') diff --git a/git/test/lib/helper.py b/git/test/lib/helper.py index a0b8dc15..c5c5a620 100644 --- a/git/test/lib/helper.py +++ b/git/test/lib/helper.py @@ -63,11 +63,11 @@ class StringProcessAdapter(object): def _mktemp(*args): """Wrapper around default tempfile.mktemp to fix an osx issue - :note: the OSX special case was removed as it was unclear why that was needed in the first place. It seems + :note: the OSX special case was removed as it was unclear why that was needed in the first place. It seems to be just fine without it. However, if we leave this special case, and if TMPDIR is set to something custom, prefixing /private/ will lead to incorrect paths on OSX.""" tdir = tempfile.mktemp(*args) - # See :note: above to learn why this is comented out. + # See :note: above to learn why this is comented out. # if sys.platform == 'darwin': # tdir = '/private' + tdir return tdir -- cgit v1.2.1