Author: bugman Date: Tue Nov 11 16:51:21 2014 New Revision: 26535 URL: http://svn.gna.org/viewcvs/relax?rev=26535&view=rev Log: Python 3 fixes via 2to3 - the "while 1" construct has been replaces with "while True". The command used was: 2to3 -j 4 -w -f idioms . Modified: branches/frame_order_cleanup/lib/frame_order/simulation.py branches/frame_order_cleanup/test_suite/shared_data/frame_order/sim_vs_pred_matrix/frame_order_simulate.py Modified: branches/frame_order_cleanup/lib/frame_order/simulation.py URL: http://svn.gna.org/viewcvs/relax/branches/frame_order_cleanup/lib/frame_order/simulation.py?rev=26535&r1=26534&r2=26535&view=diff ============================================================================== --- branches/frame_order_cleanup/lib/frame_order/simulation.py (original) +++ branches/frame_order_cleanup/lib/frame_order/simulation.py Tue Nov 11 16:51:21 2014 @@ -118,7 +118,7 @@ # Simulate. current_snapshot = 1 step = 1 - while 1: + while True: # End the simulation. if current_snapshot == total: print("\nEnd of simulation.") Modified: branches/frame_order_cleanup/test_suite/shared_data/frame_order/sim_vs_pred_matrix/frame_order_simulate.py URL: http://svn.gna.org/viewcvs/relax/branches/frame_order_cleanup/test_suite/shared_data/frame_order/sim_vs_pred_matrix/frame_order_simulate.py?rev=26535&r1=26534&r2=26535&view=diff ============================================================================== --- branches/frame_order_cleanup/test_suite/shared_data/frame_order/sim_vs_pred_matrix/frame_order_simulate.py (original) +++ branches/frame_order_cleanup/test_suite/shared_data/frame_order/sim_vs_pred_matrix/frame_order_simulate.py Tue Nov 11 16:51:21 2014 @@ -144,7 +144,7 @@ raise RelaxError("Unknown model '%s'." % MODEL) # Loop over random starting positions. - while 1: + while True: # Printout. progress_meter(index, a=1000, b=100000)