bugz
parent
63b002eb13
commit
3ce6cc15b0
|
@ -19,7 +19,7 @@ def default_p(username):
|
||||||
|
|
||||||
def bounded_find(path):
|
def bounded_find(path):
|
||||||
# find might return 1 but still have worked fine.
|
# find might return 1 but still have worked fine.
|
||||||
return find(path, "-maxdepth" "3", _ok_code=[0,1])
|
return find(path, "-maxdepth", "3", _ok_code=[0,1])
|
||||||
|
|
||||||
def guarded_mtime(path):
|
def guarded_mtime(path):
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
def slurp(file_path):
|
def slurp(file_path):
|
||||||
contents = None
|
contents = None
|
||||||
|
try:
|
||||||
with open(file_path, 'r') as f:
|
with open(file_path, 'r') as f:
|
||||||
contents = f.read()
|
contents = f.read()
|
||||||
|
except FileNotFoundError:
|
||||||
|
pass
|
||||||
return contents
|
return contents
|
||||||
|
|
||||||
def thread(initial, *fns):
|
def thread(initial, *fns):
|
||||||
|
|
Reference in New Issue