[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Bug: log-police.py and python 3.0rc1

From: Dave Lawrence <dlawrence_at_ad-holdings.co.uk>
Date: Thu, 02 Oct 2008 16:07:31 +0100

Paul_Koning_at_Dell.com wrote:
> Slip of the fingers -- I meant:
>
> exec("True=1")
>
>
Yes that works - if the exec is executed conditionally. Under python 3
the execpt clause won't be executed so this works. Patch attached.
(sanity check - when was "exec" introduced?)

PS has the list done something to change the "reply all" behaviour?

Index: log-police.py
===================================================================
--- log-police.py (revision 33393)
+++ log-police.py (working copy)
@@ -21,8 +21,8 @@
 try:
   True
 except:
- True = 1
- False = 0
+ exec("True = 1")
+ exec("False = 0")
 
 
 def fix_log_message(log_message):

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-03 00:43:19 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.