1. Mark Dickinson
  2. bigfloat

Commits

Mark Dickinson  committed 39dcbf7

Make mpfr_get_version and mpfr_print_rnd_mode return str, not bytes.

  • Participants
  • Parent commits 7ddbac9
  • Branches py3k

Comments (0)

Files changed (1)

File bigfloat_cython/src/mpfr.pyx

View file
 
     """
     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