1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Description: Fix Python3.10 issue
The 'str' type is expected to always be encoded utf-8, so it is not possible to
decode an from any other encodings anymore.
Author: Étienne Mollier <emollier@emlwks999.eu>
Last-Update: 2021-12-22
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=868229#65
--- a/nibabel/cmdline/dicomfs.py
+++ b/nibabel/cmdline/dicomfs.py
@@ -238,7 +238,7 @@
sys.exit(1)
fs = DICOMFS(
- dash_s_do='setsingle', followlinks=opts.followlinks, dicom_path=files[0].decode(encoding)
+ dash_s_do='setsingle', followlinks=opts.followlinks, dicom_path=files[0]
)
fs.parse(['-f', '-s', files[1]])
try:
|