changeset 135:523ba6907f3a

Corrected a typo (hopefully) in problem.strerror
author Oleg Oshmyan <chortos@inbox.lv>
date Tue, 24 May 2011 18:59:00 +0100
parents e84f33a60a5c
children ed4035661b85
files problem.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/problem.py	Fri May 20 14:47:42 2011 +0100
+++ b/problem.py	Tue May 24 18:59:00 2011 +0100
@@ -32,7 +32,7 @@
 __all__ = 'Problem', 'TestContext', 'test_context_end', 'TestGroup'
 
 def strerror(e):
-	s = getattr(e, 'strerror', e)
+	s = getattr(e, 'strerror', None)
 	if not s: s = str(e)
 	return ' (%s%s)' % (s[0].lower(), s[1:]) if s else ''