From 8858673395e91ae825f39c2390eb0935f753d3f3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 12 Jul 2011 14:50:21 -0700 Subject: [PATCH] emergelog: remove unneeded seek for append mode --- pym/_emerge/emergelog.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/pym/_emerge/emergelog.py b/pym/_emerge/emergelog.py index a195c6f84..bc4d9d34c 100644 --- a/pym/_emerge/emergelog.py +++ b/pym/_emerge/emergelog.py @@ -48,9 +48,6 @@ def emergelog(xterm_titles, mystr, short_msg=None): mylock = None try: mylock = portage.locks.lockfile(mylogfile) - # seek because we may have gotten held up by the lock. - # if so, we may not be positioned at the end of the file. - mylogfile.seek(0, 2) mylogfile.write(_unicode_decode( str(time.time())[:10]+": "+mystr+"\n")) mylogfile.flush() -- 2.26.2