mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
Fix more exception slicing.
This commit is contained in:
parent
7357c23ee7
commit
d11b68ab08
9 changed files with 15 additions and 15 deletions
|
@ -131,7 +131,7 @@ class Lock:
|
|||
return
|
||||
except os.error as msg:
|
||||
self.lockdir = None
|
||||
if msg[0] == EEXIST:
|
||||
if msg.args[0] == EEXIST:
|
||||
try:
|
||||
st = os.stat(self.cvslck)
|
||||
except os.error:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue