Author: bugman Date: Fri Jul 19 19:16:37 2013 New Revision: 20420 URL: http://svn.gna.org/viewcvs/relax?rev=20420&view=rev Log: Python 3 fixes for the specific_analyses.relax_disp.disp_data module. Modified: branches/relax_disp/specific_analyses/relax_disp/disp_data.py Modified: branches/relax_disp/specific_analyses/relax_disp/disp_data.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_analyses/relax_disp/disp_data.py?rev=20420&r1=20419&r2=20420&view=diff ============================================================================== --- branches/relax_disp/specific_analyses/relax_disp/disp_data.py (original) +++ branches/relax_disp/specific_analyses/relax_disp/disp_data.py Fri Jul 19 19:16:37 2013 @@ -35,7 +35,6 @@ # Python module imports. from math import pi, sqrt from numpy import float64, int32, ones, zeros -from string import replace # relax module imports. from lib.errors import RelaxError, RelaxNoSpectraError, RelaxSpinTypeError @@ -387,7 +386,7 @@ # Loop over each spin. for spin, spin_id in spin_loop(return_id=True, skip_desel=True): # The unique file name. - file_name = "disp%s.agr" % replace(replace(replace(spin_id, '#', '_'), ':', '_'), '@', '_') + file_name = "disp%s.agr" % spin_id.replace('#', '_').replace(':', '_').replace('@', '_') # Open the file for writing. file_path = get_file_path(file_name, dir)