projects
/
mw2txt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a3e108
)
emerge-lastsync.py: use open() instead of file()
author
W. Trevor King
<wking@tremily.us>
Sat, 8 Dec 2012 23:56:47 +0000
(18:56 -0500)
committer
W. Trevor King
<wking@tremily.us>
Sat, 8 Dec 2012 23:56:47 +0000
(18:56 -0500)
posts/conky/emerge-lastsync.py
patch
|
blob
|
history
diff --git
a/posts/conky/emerge-lastsync.py
b/posts/conky/emerge-lastsync.py
index 577977bff5a15a1709416d0be983632ee8a781c6..398524e7e8098c6bb81b8ab6b88fc2fb39f18c1a 100755
(executable)
--- a/
posts/conky/emerge-lastsync.py
+++ b/
posts/conky/emerge-lastsync.py
@@
-6,7
+6,7
@@
import time
syncs = []
-for line in
file
('/var/log/emerge.log', 'r'):
+for line in
open
('/var/log/emerge.log', 'r'):
if not 'Sync completed' in line:
continue
sync_time = int(line[:10])