Mercurial > ~astiob > upreckon > hgweb
comparison 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 |
comparison
equal
deleted
inserted
replaced
134:e84f33a60a5c | 135:523ba6907f3a |
---|---|
30 del unixnames | 30 del unixnames |
31 | 31 |
32 __all__ = 'Problem', 'TestContext', 'test_context_end', 'TestGroup' | 32 __all__ = 'Problem', 'TestContext', 'test_context_end', 'TestGroup' |
33 | 33 |
34 def strerror(e): | 34 def strerror(e): |
35 s = getattr(e, 'strerror', e) | 35 s = getattr(e, 'strerror', None) |
36 if not s: s = str(e) | 36 if not s: s = str(e) |
37 return ' (%s%s)' % (s[0].lower(), s[1:]) if s else '' | 37 return ' (%s%s)' % (s[0].lower(), s[1:]) if s else '' |
38 | 38 |
39 class Cache(object): | 39 class Cache(object): |
40 def __init__(self, mydict): | 40 def __init__(self, mydict): |