File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ cdef extern from 'git_version.hpp' namespace 'pydynd':
15
15
# Expose the git hashes and version numbers of this build
16
16
# NOTE: Cython generates code which is not const-correct, so
17
17
# have to cast it away.
18
- _dynd_version_string = str (< char * > dynd_version_string)
19
- _dynd_git_sha1 = str (< char * > dynd_git_sha1)
20
- _dynd_python_version_string = str (< char * > dynd_python_version_string)
21
- _dynd_python_git_sha1 = str (< char * > dynd_python_git_sha1)
18
+ _dynd_version_string = bytes (< char * > dynd_version_string).decode( ' ascii ' )
19
+ _dynd_git_sha1 = bytes (< char * > dynd_git_sha1).decode( ' ascii ' )
20
+ _dynd_python_version_string = bytes (< char * > dynd_python_version_string).decode( ' ascii ' )
21
+ _dynd_python_git_sha1 = bytes (< char * > dynd_python_git_sha1).decode( ' ascii ' )
22
22
23
23
# Exceptions to convert from C++
24
24
class BroadcastError (Exception ):
You can’t perform that action at this time.
0 commit comments