File: python3.10.patch

package info (click to toggle)
nibabel 5.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 69,232 kB
  • sloc: python: 39,851; makefile: 276; ansic: 202; sh: 99
file content (18 lines) | stat: -rw-r--r-- 666 bytes parent folder | download
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: