(self)
Write contents back to file
Write contents back to file
Write contents back to file
def write(self):
        """Write contents back to file"""
        f = open(self.passfile,'w')
        os.chmod(self.passfile, 0600)
        f.writelines(self.contents)
        f.close()
def write ( self ) : f = open ( self . passfile , 'w' ) os . chmod ( self . passfile , 0600 ) f . writelines ( self . contents ) f . close ( )