Skip to content

Commit d57cc24

Browse files
committed
Use f-string
Signed-off-by: Jono Yang <[email protected]>
1 parent af6a63c commit d57cc24

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

minecode/ls.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,7 @@ def parse_directory_listing(dir_listing, from_find=False):
182182
# this is likely a directory line from an ls -LR listing. Strip
183183
# trailing colon and keep track of the base directory
184184
if not line.endswith(":"):
185-
raise Exception(
186-
"Unknown directory listing line format: #%(ln)d: %(line)r"
187-
% locals()
188-
)
185+
raise Exception(f"Unknown directory listing line format: #{ln}: {line}")
189186
base_dir = line.strip(":")
190187
continue
191188

0 commit comments

Comments
 (0)