Commits

Mark Dickinson committed 39dcbf7

Make mpfr_get_version and mpfr_print_rnd_mode return str, not bytes.

Comments (0)

Files changed (1)

bigfloat_cython/src/mpfr.pyx

 
     """
     check_rounding_mode(rnd)
-    return cmpfr.mpfr_print_rnd_mode(rnd)
+    return cmpfr.mpfr_print_rnd_mode(rnd).decode('ascii')
 
 
 ###############################################################################
     Return the MPFR version, as a string.
 
     """
-    return cmpfr.mpfr_get_version()
+    return cmpfr.mpfr_get_version().decode('ascii')
 
 MPFR_VERSION = cmpfr.MPFR_VERSION
 MPFR_VERSION_MAJOR = cmpfr.MPFR_VERSION_MAJOR