Permalink
Browse files

Fix except syntax.

  • Loading branch information...
1 parent ca4208d commit 70850c6e0c33f39f6529943650c9b20afd574037 @sashka committed Jul 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 atomicfile.py
View
@@ -17,7 +17,7 @@ def copymode(src, dst, mode=None):
"""
try:
st_mode = os.lstat(src).st_mode & 0o777
- except OSError, inst:
+ except OSError as inst:
if inst.errno != errno.ENOENT:
raise
st_mode = mode

0 comments on commit 70850c6

Please sign in to comment.