jceel / py-libzfs

Python libzfs bindings
16 stars 8 forks source link

automatic convertion from unicode to ascii is broken with python2 #9

Closed bapt closed 8 years ago

bapt commented 8 years ago

if you try for example to use py-libzfs with python2 and test libzfs.ZFS().get_snapshot("something").holds

TypeError: Argument 'key' has incorrect type (expected str, got unicode)

If I remove the header from libzfs.pyx then is works again

jceel commented 8 years ago

I believe I fixed this in 9e22fa3, can you confirm on your end?

bapt commented 8 years ago

Confirm thanks!