Author: bugman Date: Mon Mar 19 22:14:41 2012 New Revision: 15571 URL: http://svn.gna.org/viewcvs/relax?rev=15571&view=rev Log: Fix for the relax info print out on Python 2.5 or below. Modified: 1.3/info.py Modified: 1.3/info.py URL: http://svn.gna.org/viewcvs/relax/1.3/info.py?rev=15571&r1=15570&r2=15571&view=diff ============================================================================== --- 1.3/info.py (original) +++ 1.3/info.py Mon Mar 19 22:14:41 2012 @@ -415,8 +415,10 @@ text = text + (format % ("Python revision: ", platform.python_revision())) if sys.executable: text = text + (format % ("Python executable: ", sys.executable)) - text = text + (format % ("Python flags: ", sys.flags)) - text = text + (format % ("Python float info: ", sys.float_info)) + if hasattr(sys, 'flags'): + text = text + (format % ("Python flags: ", sys.flags)) + if hasattr(sys, 'float_info'): + text = text + (format % ("Python float info: ", sys.float_info)) text = text + (format % ("Python module path: ", sys.path)) # Python packages.