ó Afc@soddlZddlZddlZdZejeƒZddd„ƒYZd„ZedkrkeƒndS(iÿÿÿÿNs^([^: ]+):([1-9][0-9]*):tFileObjcBs#eZd„Zd„Zd„ZRS(cCsk||_d|_yt|dƒjƒ|_Wn*tk rZ}d|G|GHd|_dSXdG|jGHdS(Nitrs*** Can't open "%s":tdiffing(tfilenametchangedtopent readlinestlinestIOErrortNone(tselfRtmsg((s+/usr/lib64/python2.7/Demo/scripts/update.pyt__init__s    cCs½|jsdG|jGHdSy0tj|j|jdƒt|jdƒ}Wn-tjtfk rx}d|jG|GHdSXdG|jGHx|jD]}|j|ƒqW|j ƒd|_dS(Ns no changes tot~tws*** Can't rewrite "%s":twritingi( RRtostrenameRterrorRRtwritetclose(R tfpR tline((s+/usr/lib64/python2.7/Demo/scripts/update.pytfinishs    cCs÷|jdkr'd|j||fGdSt|ƒd}d|koWt|jƒknstd|j||fGdS|j||krŸd|j||fGdS|js´d|_nd||fGHdG|j|GdGH||j|(RR RtevaltlenR(R tlinenotrestti((s+/usr/lib64/python2.7/Demo/scripts/update.pytprocess,s(%   (t__name__t __module__R RR(((s+/usr/lib64/python2.7/Demo/scripts/update.pyRs cCs1tjdrayttjddƒ}Wqjtk r]}dtjdG|GHtjdƒqjXn tj}d}xº|jƒ}|sœ|r˜|jƒnPnt j |ƒ}|dkrÅdG|Gqsnt j ddƒ\}}| só||j kr|r|jƒnt |ƒ}n|j|||ƒqsWdS(NiRsCan't open "%s":is Funny line:i(tsystargvRRtexittstdinR treadlineRtprogtmatchtgroupRRR(RR tcurfileRtnRR((s+/usr/lib64/python2.7/Demo/scripts/update.pytmainBs0      t__main__(( RR"tretpattcompileR'RR,R (((s+/usr/lib64/python2.7/Demo/scripts/update.pyt s   2