Mercurial > ~astiob > upreckon > hgweb
diff problem.py @ 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 | b7fb64ce03d9 |
children | d2c266c8d820 |
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 ''