Skip to content

Commit

Permalink
Apply ruff/pyupgrade rule UP025
Browse files Browse the repository at this point in the history
UP025 Remove unicode literals from strings
  • Loading branch information
DimitriPapadopoulos committed Nov 24, 2024
1 parent 802475e commit 8f84741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nipype/utils/filemanip.py
Original file line number Diff line number Diff line change
Expand Up @@ -942,15 +942,15 @@ def load_spm_mat(spm_mat_file, **kwargs):
fnames = dict()
try:
fnames["Vbeta"] = [
u"".join(chr(c[0]) for c in h5file[obj_ref[0]])
"".join(chr(c[0]) for c in h5file[obj_ref[0]])
for obj_ref in h5file["SPM"]["Vbeta"]["fname"]
]
except Exception:
fnames["Vbeta"] = []
for contr_type in ["Vcon", "Vspm"]:
try:
fnames[contr_type] = [
u"".join(chr(c[0]) for c in h5file[obj_ref[0]]["fname"])
"".join(chr(c[0]) for c in h5file[obj_ref[0]]["fname"])
for obj_ref in h5file["SPM"]["xCon"][contr_type]
]
except Exception:
Expand Down

0 comments on commit 8f84741

Please sign in to comment.