On Fri, Dec 07, 2012 at 04:26:49PM -0200, Marcelo Moreira de Mello wrote: > On 12/07/2012 05:20 AM, Jan Pazdziora wrote: > >> Hello Folks, > >> > > >> > Here follow a better looking patch. Please, ignore the previous one. > > [...] > > > >> > try: > >> > - file = open( Logger.logfile, 'a' ) > >> > - os.chmod(Logger.logfile, 0600) > >> > - file.write( outstring ) > >> > - file.close() > >> > + fd = os.open(Logger.logfile, os.O_APPEND | > >> > os.O_RDWR | os.O_CREAT, 0600) > >> > + os.write(fd, outstring) > >> > + os.close() > > Either patch will fail with > > > > TypeError: close() takes exactly 1 argument (0 given) > > Hello Jan, > > Thanks for heads up. > > Follow attached an updated version.
Pushed to Spacewalk master. Thank you, -- Jan Pazdziora Principal Software Engineer, Satellite Engineering, Red Hat _______________________________________________ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel