andreafrancia / trash-cli

Command line interface to the freedesktop.org trashcan.
GNU General Public License v2.0
3.63k stars 177 forks source link

Python 3 compatibility in list_mount_points #170

Closed stefanor closed 3 years ago

stefanor commented 4 years ago

ctypes requires byte strings for arguments and return values. This was causing mount_points() to return an empty list on little-endian and crash on big-endian machines.

This will return unicode strings under Python 2. But that's EoL now.

andreafrancia commented 3 years ago

Thank you for your patch.