From df6595d983f42b9cc5a42fb38946b83b6b8e2dcd Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 8 Dec 2012 18:56:47 -0500 Subject: [PATCH] emerge-lastsync.py: use open() instead of file() --- posts/conky/emerge-lastsync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) -- 2.26.2