fix typos

master
Michael F. Lamb 2015-10-20 20:46:59 +00:00
parent 65e1ec1a5d
commit a1fec5013c
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ def most_recent_within(path):
"""Return the most recent timestamp among all files within path, 3
levels deep.
"""
return max(modified_times(path), maxdepth=3)
return max(modified_times(path, maxdepth=3))
def modified_times(path, maxdepth=None):
"""Walk the directories in path, generating timestamps for all
@ -119,7 +119,7 @@ def modified_times(path, maxdepth=None):
for f in files:
try:
yield os.path.getmtime(os.path.join(root, f))
except FileNotFoundError:
except (FileNotFoundError, PermissionError):
pass
def tdp_user(username, homedir):