From: Zac Medico Date: Tue, 12 Jul 2011 21:50:21 +0000 (-0700) Subject: emergelog: remove unneeded seek for append mode X-Git-Tag: v2.2.0_alpha44~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8858673395e91ae825f39c2390eb0935f753d3f3;p=portage.git emergelog: remove unneeded seek for append mode --- 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()