Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit20b4f49

Browse files
committed
Fix syntax for Python 3.x
1 parent4c9dd7f commit20b4f49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎git/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def flock(fd, flags=0):
6868
# Unlock file descriptor
6969
try:
7070
win32file.UnlockFileEx(hfile,0,-0x10000,__overlapped)
71-
exceptpywintypes.error,exc_value:
71+
exceptpywintypes.errorasexc_value:
7272
# error: (158, 'UnlockFileEx', 'The segment is already unlocked.')
7373
# To match the 'posix' implementation, silently ignore this error
7474
ifexc_value[0]==158:
@@ -81,7 +81,7 @@ def flock(fd, flags=0):
8181
# Lock file
8282
try:
8383
win32file.LockFileEx(hfile,flags,0,-0x10000,__overlapped)
84-
exceptpywintypes.error,exc_value:
84+
exceptpywintypes.errorasexc_value:
8585
ifexc_value[0]==33:
8686
# error: (33, 'LockFileEx',
8787
# 'The process cannot access the file because another process has locked

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp