throwing a WindowsError with the code

このコミットが含まれているのは:
Julian David Rath 2016-04-12 08:53:04 +02:00
コミット 6c01453fd3
1個のファイルの変更1行の追加3行の削除

ファイルの表示

@ -54,6 +54,4 @@ def send2trash(path):
fileop.lpszProgressTitle = None
result = SHFileOperationW(byref(fileop))
if result:
msg = "Couldn't perform operation. Error code: %d" % result
raise OSError(msg)
raise WindowsError(None, None, path, result)