mirror of
https://github.com/DarrylNixon/melamine.git
synced 2024-04-22 06:27:20 -07:00
pathlib Path uses bytes(), not decode()
This commit is contained in:
parent
6c9cca49b9
commit
e69775471f
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class EXT23Handler:
|
||||||
inode = path.stat().st_ino
|
inode = path.stat().st_ino
|
||||||
|
|
||||||
fs = ext2_filsys()
|
fs = ext2_filsys()
|
||||||
if self.libext2fs.ext2fs_open(path.encode(), 0, 0, 0, ctypes.byref(fs)) == 0:
|
if self.libext2fs.ext2fs_open(bytes(path), 0, 0, 0, ctypes.byref(fs)) == 0:
|
||||||
try:
|
try:
|
||||||
scan = ext2_inode_scan()
|
scan = ext2_inode_scan()
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue