whee
parent
3ce6cc15b0
commit
8751a6fa00
|
@ -28,13 +28,11 @@ def guarded_mtime(path):
|
|||
return 0
|
||||
|
||||
def modify_time(username):
|
||||
p(username)
|
||||
files_to_mtimes = partial(map, guarded_mtime)
|
||||
return thread(username,
|
||||
username_to_html_path,
|
||||
bounded_find,
|
||||
files_to_mtimes,
|
||||
p,
|
||||
list,
|
||||
max)
|
||||
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
def slurp(file_path):
|
||||
contents = None
|
||||
try:
|
||||
with open(file_path, 'r') as f:
|
||||
with open(file_path, 'r', encoding="utf-8") as f:
|
||||
contents = f.read()
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
return contents
|
||||
except UnicodeDecodeError:
|
||||
return contents
|
||||
|
||||
def thread(initial, *fns):
|
||||
value = initial
|
||||
|
|
Reference in New Issue