diff options
author | Florian Apolloner <florian@apolloner.eu> | 2008-08-21 16:49:01 +0200 |
---|---|---|
committer | Florian Apolloner <florian@apolloner.eu> | 2008-08-21 16:49:01 +0200 |
commit | a6604a00a652e754cb8b6b0b9f194f839fc38d7c (patch) | |
tree | 547e8af2f10ffa77c4ed4d0a8381e64141f986b4 /lib/git | |
parent | cf37099ea8d1d8c7fbf9b6d12d7ec0249d3acb8b (diff) | |
download | gitpython-a6604a00a652e754cb8b6b0b9f194f839fc38d7c.tar.gz |
fixed unneeded list unpacking
Diffstat (limited to 'lib/git')
-rw-r--r-- | lib/git/repo.py | 6 |
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() |