Skip to content

Commit a6604a0

Browse files
committed
fixed unneeded list unpacking
1 parent cf37099 commit a6604a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/git/repo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def _get_alternates(self):
404404
Returns
405405
list[str] (pathnames of alternates)
406406
"""
407-
alternates_path = os.path.join(self.path, *['objects', 'info', 'alternates'])
407+
alternates_path = os.path.join(self.path, 'objects', 'info', 'alternates')
408408

409409
if os.path.exists(alternates_path):
410410
try:
@@ -431,10 +431,10 @@ def _set_alternates(self, alts):
431431
raise NoSuchPathError("Could not set alternates. Alternate path %s must exist" % alt)
432432

433433
if not alts:
434-
os.remove(os.path.join(self.path, *['objects', 'info', 'alternates']))
434+
os.remove(os.path.join(self.path, 'objects', 'info', 'alternates'))
435435
else:
436436
try:
437-
f = open(os.path.join(self.path, *['objects', 'info', 'alternates']), 'w')
437+
f = open(os.path.join(self.path, 'objects', 'info', 'alternates'), 'w')
438438
f.write("\n".join(alts))
439439
finally:
440440
f.close()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy