def addBuddy(self, alias, q2qaddr):
        temp = self.buddiesfile.temporarySibling()
        try:
            origdata = self.buddiesfile.open().read()
        except IOError:
            origdata = ''
        moredata = '\n%s <%s>' % (alias, q2qaddr)
        ftemp = temp.open('w')
        ftemp.write(origdata)
        ftemp.write(moredata)
        ftemp.close()
        temp.moveTo(self.buddiesfile)
        self.parseBuddies()
dataset/ETHPy150Open twisted/vertex/vertex/gtk2hack.py/PlugEntry.addBuddy/original