From: W. Trevor King Date: Sat, 8 Dec 2012 23:56:47 +0000 (-0500) Subject: emerge-lastsync.py: use open() instead of file() X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=df6595d983f42b9cc5a42fb38946b83b6b8e2dcd;p=mw2txt.git emerge-lastsync.py: use open() instead of file() --- diff --git a/posts/conky/emerge-lastsync.py b/posts/conky/emerge-lastsync.py index 577977b..398524e 100755 --- 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])