From f89e346d734e943f9a5780f6e84f301fea1be739 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 23 十月 2020 10:17:57 +0800 Subject: [PATCH] 1111 修复简繁体转换工具无法转换大写TXT文件bug; --- Tool/简繁体转换工具/chscht.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git "a/Tool/\347\256\200\347\271\201\344\275\223\350\275\254\346\215\242\345\267\245\345\205\267/chscht.py" "b/Tool/\347\256\200\347\271\201\344\275\223\350\275\254\346\215\242\345\267\245\345\205\267/chscht.py" index ea9ef4c..d86904a 100644 --- "a/Tool/\347\256\200\347\271\201\344\275\223\350\275\254\346\215\242\345\267\245\345\205\267/chscht.py" +++ "b/Tool/\347\256\200\347\271\201\344\275\223\350\275\254\346\215\242\345\267\245\345\205\267/chscht.py" @@ -86,7 +86,7 @@ for parent, _, filenames in os.walk(path): for filename in filenames: fullPath = os.path.join(parent, filename) - if not fullPath.endswith(".txt"): + if not fullPath.lower().endswith(".txt"): continue totalCount += 1 -- Gitblit v1.8.0