这个提交包含在:
nathaniel smith 2015-07-31 21:13:58 -07:00
父节点 3ce6cc15b0
当前提交 8751a6fa00
共有 2 个文件被更改,包括 3 次插入4 次删除

查看文件

@ -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,10 +1,11 @@
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
except UnicodeDecodeError:
return contents
def thread(initial, *fns):