12215 pyzfs module does not build with python 3.7

Review Request #2492 — Created Jan. 19, 2020 and submitted

citrus
illumos-gate
master
12215
dacd2b5...
general
12215 pyzfs module does not build with python 3.7


  • 0
  • 0
  • 3
  • 0
  • 3
Description From Last Updated
marcel
  1. 
      
  2. usr/src/lib/pyzfs/common/ioctl.c (Diff revision 1)
     
     

    I think if you change this line to const char *keystr = PyUnicode_AsUTF8(key); you should be safe with both 3.5 and 3.7.

    1. That's better, thanks.

  3. usr/src/lib/pyzfs/common/ioctl.c (Diff revision 1)
     
     

    I think if you change this line to const char *valstr = PyUnicode_AsUTF8(value); you should be safe with both 3.5 and 3.7.

  4. 
      
pwinder
  1. 
      
  2. usr/src/lib/pyzfs/common/ioctl.c (Diff revision 1)
     
     

    Isn't it better to make the local variable "const", rather than subvert the attributes of the function?
    Same below?

    1. That's better, thanks.

  3. 
      
citrus
pwinder
  1. Ship It!
  2. 
      
marcel
  1. Ship It!
  2. 
      
alp
  1. Ship It!
  2. 
      
citrus
Review request changed

Status: Closed (submitted)

Loading...