← Back to team overview

ufl team mailing list archive

Re: [HG UFL] Fix printing without newline on '...' without using print. Found nice

 

On Mon, Mar 09, 2009 at 08:54:07PM +0100, Martin Sandve Alnæs wrote:
> Ok for now, but modifying the standard library behaviour isn't a very
> nice thing to do :)
> 
> Martin

I tried changing only the method for the UFL StreamHandler instance
but that didn't work.

If I do

  self._handler.emit = emit

I get

  File "/usr/lib/python2.5/logging/__init__.py", line 655, in handle
    self.emit(record)
  TypeError: emit() takes exactly 2 arguments (1 given)

-- 
Anders

Attachment: signature.asc
Description: Digital signature


Follow ups

References