emerge-lastsync.py: use open() instead of file()
authorW. Trevor King <wking@tremily.us>
Sat, 8 Dec 2012 23:56:47 +0000 (18:56 -0500)
committerW. Trevor King <wking@tremily.us>
Sat, 8 Dec 2012 23:56:47 +0000 (18:56 -0500)
posts/conky/emerge-lastsync.py

index 577977bff5a15a1709416d0be983632ee8a781c6..398524e7e8098c6bb81b8ab6b88fc2fb39f18c1a 100755 (executable)
@@ -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])