Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
arch-historical-archive
Commits
f5ce0071
Commit
f5ce0071
authored
Mar 29, 2019
by
Florian Pritz
Browse files
Use f strings instead of String.format
Signed-off-by:
Florian Pritz
<
bluewind@xinu.at
>
parent
a73b1439
Changes
1
Hide whitespace changes
Inline
Side-by-side
upload_pkg_internetarchive.py
View file @
f5ce0071
...
...
@@ -77,10 +77,9 @@ class ArchiveUploader:
filename
=
os
.
path
.
basename
(
f
)
self
.
db
.
add_file
(
filename
)
else
:
print
(
"Upload failed with status code '{}' for directory '{}' and file: {}"
.
format
(
code
,
directory
,
f
))
print
(
f
"Upload failed with status code '
{
code
}
' for directory '
{
directory
}
' and file:
{
f
}
"
)
except
Exception
as
e
:
print
(
"{}: exception raised"
.
format
(
identifier
)
,
file
=
sys
.
stderr
)
print
(
f
"
{
identifier
}
: exception raised"
,
file
=
sys
.
stderr
)
print
(
e
,
file
=
sys
.
stderr
)
print
(
directory
)
raise
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment