mailr9347 - /1.3/prompt/interpreter.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on August 20, 2009 - 17:48:
Author: bugman
Date: Thu Aug 20 17:48:36 2009
New Revision: 9347

URL: http://svn.gna.org/viewcvs/relax?rev=9347&view=rev
Log:
The exec statement has been replaced with a call to the exec() function.

This was done with the python 2.x to 3.x script with the commands:
2to3 -w -f exec relax .

The change is in preparation for Python 3.0, and relax still works with 
Python versions 2.4, 2.5,
and 2.6.


Modified:
    1.3/prompt/interpreter.py

Modified: 1.3/prompt/interpreter.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/prompt/interpreter.py?rev=9347&r1=9346&r2=9347&view=diff
==============================================================================
--- 1.3/prompt/interpreter.py (original)
+++ 1.3/prompt/interpreter.py Thu Aug 20 17:48:36 2009
@@ -545,7 +545,7 @@
     """
 
     try:
-        exec code in self.locals
+        exec(code, self.locals)
     except SystemExit:
         raise
     except AllRelaxErrors, instance:




Related Messages


Powered by MHonArc, Updated Fri Aug 21 11:00:02 2009