py3: make linux file deletion work

This commit is contained in:
Eli Schwartz 2019-04-18 10:56:58 -04:00
parent 8b75374b4b
commit 39ad9795b9
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6

View File

@ -66,7 +66,7 @@ def info_for(src, topdir):
info = "[Trash Info]\n"
info += "Path=" + uniquote(src) + "\n"
info += "DeletionDate=" + format_date(datetime.now()) + "\n"
return info
return info.encode('utf-8')
def check_create(dir):