[python3] 部分脚本从python2语法升级到python3

This commit is contained in:
Meco Man
2021-03-16 17:06:03 +08:00
parent c3ffe18688
commit b138082fcc
2 changed files with 3 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ class Folder(object):
# TODO: take care of the unicode names
for ent in os.listdir(u'.'):
if os.path.isdir(ent):
cwd = os.getcwdu()
cwd = os.getcwd()
d = Folder(ent)
# depth-first
os.chdir(os.path.join(cwd, ent))