From a6604a00a652e754cb8b6b0b9f194f839fc38d7c Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Thu, 21 Aug 2008 16:49:01 +0200 Subject: fixed unneeded list unpacking --- lib/git/repo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/git/repo.py') diff --git a/lib/git/repo.py b/lib/git/repo.py index 1ceb7449..edaeee83 100644 --- a/lib/git/repo.py +++ b/lib/git/repo.py @@ -404,7 +404,7 @@ class Repo(object): Returns list[str] (pathnames of alternates) """ - alternates_path = os.path.join(self.path, *['objects', 'info', 'alternates']) + alternates_path = os.path.join(self.path, 'objects', 'info', 'alternates') if os.path.exists(alternates_path): try: @@ -431,10 +431,10 @@ class Repo(object): raise NoSuchPathError("Could not set alternates. Alternate path %s must exist" % alt) if not alts: - os.remove(os.path.join(self.path, *['objects', 'info', 'alternates'])) + os.remove(os.path.join(self.path, 'objects', 'info', 'alternates')) else: try: - f = open(os.path.join(self.path, *['objects', 'info', 'alternates']), 'w') + f = open(os.path.join(self.path, 'objects', 'info', 'alternates'), 'w') f.write("\n".join(alts)) finally: f.close() -- cgit v1.2.1