summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f78ae2c)
raw | patch | inline | side by side (parent: f78ae2c)
author | Alexander Shiryaev <aixp@mail.ru> | |
Wed, 14 Nov 2012 18:07:12 +0000 (22:07 +0400) | ||
committer | Alexander Shiryaev <aixp@mail.ru> | |
Wed, 14 Nov 2012 18:07:12 +0000 (22:07 +0400) |
Trurl-based/_OpenBSD_/Lin/Mod/gen-Libc/mkstrerrnocase.py | patch | blob | history |
diff --git a/Trurl-based/_OpenBSD_/Lin/Mod/gen-Libc/mkstrerrnocase.py b/Trurl-based/_OpenBSD_/Lin/Mod/gen-Libc/mkstrerrnocase.py
index 4059ecf63a516490b2a963f88b5a5d6299f977ec..a5bdc0b943dcdf9644dcf4d6b9840f8f2e8fe979 100755 (executable)
if line == '':
break
code, s = string.split(line.rstrip(), ', ', maxsplit=1)
- s1 = s[0].lower() + s[1:]
- print '| %s.%s: s := "%s, %s"' % (MOD, code, code, s1)
+ if s[1].lower() == s[1]:
+ s = s[0].lower() + s[1:]
+ print '| %s.%s: s := "%s, %s"' % (MOD, code, code, s)
if __name__ == '__main__':
main()