Author: bugman Date: Sat May 9 18:22:35 2009 New Revision: 9043 URL: http://svn.gna.org/viewcvs/relax?rev=9043&view=rev Log: Python 2.6 bug fix for the RelaxWarnings format() function. The warn.formatwarning() function this replaces has a new keyword arg. Modified: 1.3/relax_warnings.py Modified: 1.3/relax_warnings.py URL: http://svn.gna.org/viewcvs/relax/1.3/relax_warnings.py?rev=9043&r1=9042&r2=9043&view=diff ============================================================================== --- 1.3/relax_warnings.py (original) +++ 1.3/relax_warnings.py Sat May 9 18:22:35 2009 @@ -38,7 +38,7 @@ # The warning formatting function. -def format(message, category, filename, lineno): +def format(message, category, filename, lineno, line=None): """ Replacement for warnings.formatwarning to customise output format.""" # Add the text 'RelaxWarning: ' to the start of the warning message.