Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslpy
Commits
d52b58ed
Commit
d52b58ed
authored
May 02, 2019
by
Michiel Cottaar
Browse files
BUG: remove f-string
parent
eee2c366
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/utils/filetree/parse.py
View file @
d52b58ed
...
...
@@ -50,7 +50,7 @@ def check_forbidden_characters(text, characters, text_type):
"""
bad
=
[
character
for
character
in
characters
if
character
in
text
]
if
len
(
bad
)
>
0
:
raise
ValueError
(
f
'Invalid character(s) "
{
""
.
join
(
bad
)
}
" in
{
text_type
}
:
{
text
}
'
)
raise
ValueError
(
'Invalid character(s) "{
}" in {}: {}'
.
format
(
""
.
join
(
bad
)
,
text_type
,
text
)
)
def
read_line
(
line
:
str
)
->
Tuple
[
int
,
PurePath
,
str
]:
...
...
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