Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vkosh/2004082 to your computer and use it in GitHub Desktop.
Save vkosh/2004082 to your computer and use it in GitHub Desktop.
From d525162f0eb34d6203338fcf843a774af0f16838 Mon Sep 17 00:00:00 2001
From: Vladlen Y. Koshelev <vlad.kosh@gmail.com>
Date: Fri, 9 Mar 2012 01:56:55 +0400
Subject: [PATCH 3/3] * ansi -> unicode fs transaction functions
---
esky/fstransact/win32txf.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/esky/fstransact/win32txf.py b/esky/fstransact/win32txf.py
index 54b28b4..3606d50 100644
--- a/esky/fstransact/win32txf.py
+++ b/esky/fstransact/win32txf.py
@@ -33,11 +33,11 @@ try:
CommitTransaction = check_call(ktmw32.CommitTransaction)
RollbackTransaction = check_call(ktmw32.RollbackTransaction)
kernel32 = ctypes.windll.kernel32
- MoveFileTransacted = check_call(kernel32.MoveFileTransactedA)
- CopyFileTransacted = check_call(kernel32.CopyFileTransactedA)
- DeleteFileTransacted = check_call(kernel32.DeleteFileTransactedA)
- RemoveDirectoryTransacted = check_call(kernel32.RemoveDirectoryTransactedA)
- CreateDirectoryTransacted = check_call(kernel32.CreateDirectoryTransactedA)
+ MoveFileTransacted = check_call(kernel32.MoveFileTransactedW)
+ CopyFileTransacted = check_call(kernel32.CopyFileTransactedW)
+ DeleteFileTransacted = check_call(kernel32.DeleteFileTransactedW)
+ RemoveDirectoryTransacted = check_call(kernel32.RemoveDirectoryTransactedW)
+ CreateDirectoryTransacted = check_call(kernel32.CreateDirectoryTransactedW)
except (WindowsError,AttributeError):
raise ImportError("win32 TxF is not available")
--
1.7.3.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment