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: