Skip to content

Commit e305321

Browse files
committed
Fix IndexError and line length issues in spotifycli.py for Python 3.13
1 parent 2c5ec48 commit e305321

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

spotifycli/spotifycli.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,13 @@ def start_shell():
105105
print("Error during call to fork()")
106106
exit(1)
107107

108-
109108
def add_arguments():
110109
parser = argparse.ArgumentParser(description=__doc__)
111110
for argument in get_arguments():
112-
<<<<<<< HEAD
113-
arg_type = 'store' if len(argument) > 2 and argument[2] else 'store_true'
114-
parser.add_argument(argument[0], help=argument[1], action=arg_type)
115-
parser.add_argument("--client", action="store", dest="client",
116-
help="sets client's dbus name", default="spotify")
117-
return parser.parse_args()
118-
=======
119111
if len(argument) > 2 and argument[2]:
120112
arg_type = 'store'
121113
else:
122114
arg_type = 'store_true'
123-
>>>>>>> 3dcddf8 (Fix IndexError and line length issues in spotifycli.py for Python 3.13)
124115

125116
parser.add_argument(
126117
argument[0],
@@ -138,6 +129,7 @@ def add_arguments():
138129

139130
return parser.parse_args()
140131

132+
141133
def get_arguments():
142134
return [
143135
("--version", "shows version number"),

0 commit comments

Comments
 (0)