[SHR-U] Perma-block a Number

roguemoko at roguewrt.org roguemoko at roguewrt.org
Tue Jun 16 03:05:15 CEST 2009


On 16/06/2009 7:09 AM, The Digital Pioneer wrote:
> On Mon, Jun 15, 2009 at 3:35 PM, arne anka <openmoko at ginguppin.de
> <mailto:openmoko at ginguppin.de>> wrote:
>
>     no "," but "%" as separator:
>
>     logger.debug ("INCOMING CALLER: %s" % info.get( "peer", "" ))
>
>       from what i see.
>
>
> Ehhh, you sure about that? That doesn't look right, and I copied the
> pattern set by another line already in the file:
>
> logger.error( "error from channel to %s = %s", request, response )

That may be out of context, variable substitution may take place else 
where. 'request' and 'response' are most likely printed/used as is.

Test it for yourself :) ...

#!/usr/pkg/bin/python2.5
# string formatting
string1 = raw_input( "Enter string1: " )
string2 = raw_input( "Enter string2: " )
print "string1 is %s, string2 is %s" % (string1, string2)

Sarton



More information about the community mailing list