Rev 3558: Don't use ^=, as it isn't supported with older versions of pyrex. in http://bzr.arbash-meinel.com/branches/bzr/1.6-dev/win32_find_files
John Arbash Meinel
john at arbash-meinel.com
Thu Jul 17 15:41:31 BST 2008
At http://bzr.arbash-meinel.com/branches/bzr/1.6-dev/win32_find_files
------------------------------------------------------------
revno: 3558
revision-id: john at arbash-meinel.com-20080717144123-0ne8ig2vm9oehnn7
parent: pqm at pqm.ubuntu.com-20080717132712-1zbt1asfsuslh1v9
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: win32_find_files
timestamp: Thu 2008-07-17 09:41:23 -0500
message:
Don't use ^=, as it isn't supported with older versions of pyrex.
-------------- next part --------------
=== modified file 'bzrlib/_walkdirs_win32.pyx'
--- a/bzrlib/_walkdirs_win32.pyx 2008-07-17 12:21:19 +0000
+++ b/bzrlib/_walkdirs_win32.pyx 2008-07-17 14:41:23 +0000
@@ -107,10 +107,10 @@
mode_bits = 0100666 # writeable file, the most common
if data.dwFileAttributes & FILE_ATTRIBUTE_READONLY == FILE_ATTRIBUTE_READONLY:
- mode_bits ^= 0222 # remove the write bits
+ mode_bits = mode ^ 0222 # remove the write bits
if data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY == FILE_ATTRIBUTE_DIRECTORY:
# Remove the FILE bit, set the DIR bit, and set the EXEC bits
- mode_bits ^= 0140111
+ mode_bits = mode ^ 0140111
return mode_bits
More information about the bazaar-commits
mailing list