MCPcopy Create free account
hub / github.com/ActiveState/code / main

Function main

recipes/Python/473849_Compilepy/recipe-473849.py:3–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import os, time
2
3def main():
4 master = dict()
5 for name in os.listdir(os.getcwd()):
6 try:
7 master[time.mktime(time.strptime(name, '%A, %B %d, %Y.txt'))] = name
8 except:
9 pass
10 file('Logbook.txt', 'w').write('\n'.join([file(master[index]).read() for index in sorted(master)]))
11
12if __name__ == '__main__':
13 main()

Callers 1

recipe-473849.pyFile · 0.70

Calls 7

getcwdMethod · 0.80
dictClass · 0.50
sortedFunction · 0.50
listdirMethod · 0.45
writeMethod · 0.45
joinMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected