summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2008-08-21 16:49:01 +0200
committerFlorian Apolloner <florian@apolloner.eu>2008-08-21 16:49:01 +0200
commita6604a00a652e754cb8b6b0b9f194f839fc38d7c (patch)
tree547e8af2f10ffa77c4ed4d0a8381e64141f986b4 /lib
parentcf37099ea8d1d8c7fbf9b6d12d7ec0249d3acb8b (diff)
downloadgitpython-a6604a00a652e754cb8b6b0b9f194f839fc38d7c.tar.gz
fixed unneeded list unpacking
Diffstat (limited to 'lib')
-rw-r--r--lib/git/repo.py6
1 files changed, 3 insertions, 3 deletions
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()