@@ -96,7 +96,7 @@ def show_collection(collection_id, ctype):
9696 name = collection ["name" ], editor = collection ["editor" ], mbid = collection ["id" ]
9797 )
9898 )
99- print ("" )
99+ print ()
100100 # release count is only available starting with musicbrainzngs 0.5
101101 if "release-count" in collection :
102102 print ("{} releases" .format (collection ["release-count" ]))
@@ -110,7 +110,7 @@ def show_collection(collection_id, ctype):
110110 print ("{} recordings" .format (collection ["recording-count" ]))
111111 if "work-count" in collection :
112112 print ("{} works" .format (collection ["work-count" ]))
113- print ("" )
113+ print ()
114114
115115 if "release-list" in collection :
116116 show_releases (collection )
@@ -124,7 +124,7 @@ def show_releases(collection):
124124 print ("Releases:" )
125125 releases_fetched = 0
126126 while len (release_list ) > 0 :
127- print ("" )
127+ print ()
128128 releases_fetched += len (release_list )
129129 for release in release_list :
130130 print ("{title} ({mbid})" .format (title = release ["title" ], mbid = release ["id" ]))
@@ -136,7 +136,7 @@ def show_releases(collection):
136136 collection = result ["collection" ]
137137 release_list = collection ["release-list" ]
138138
139- print ("" )
139+ print ()
140140 print ("Number of fetched releases: %d" % releases_fetched )
141141
142142
@@ -154,7 +154,7 @@ def show_releases(collection):
154154 username = args .pop (0 )
155155
156156 # Input the password.
157- password = getpass .getpass ("Password for {}: " . format ( username ) )
157+ password = getpass .getpass (f "Password for { username } : " )
158158
159159 # Call musicbrainzngs.auth() before making any API calls that
160160 # require authentication.
@@ -175,9 +175,9 @@ def show_releases(collection):
175175 sys .exit ("only release collections can be modified ATM" )
176176 else :
177177 # Print out the collection's contents.
178- print ("" )
178+ print ()
179179 show_collection (collection_id , options .type )
180180 else :
181181 # Show all collections.
182- print ("" )
182+ print ()
183183 show_collections ()
0 commit comments