mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-16 22:10:26 +00:00
commit
b77e39f26b
1 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ def get_mtime(filename):
|
|||
"""Return modification time of filename or zero on errors."""
|
||||
try:
|
||||
return os.path.getmtime(filename)
|
||||
except os.error:
|
||||
except OSError:
|
||||
return 0
|
||||
|
||||
|
||||
|
|
@ -53,7 +53,7 @@ def get_size(filename):
|
|||
"""Return file size in Bytes, or -1 on error."""
|
||||
try:
|
||||
return os.path.getsize(filename)
|
||||
except os.error:
|
||||
except OSError:
|
||||
return -1
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue