提交 a1902f2d 编写于 作者: wuyangyong's avatar wuyangyong

update SrcRemove(): auto detect string or file object.

上级 601ab358
......@@ -695,13 +695,11 @@ def SrcRemove(src, remove):
if not src:
return
if type(src[0]) == type('str'):
for item in src:
if type(item) == type('str'):
if os.path.basename(item) in remove:
src.remove(item)
return
for item in src:
else:
if os.path.basename(item.rstr()) in remove:
src.remove(item)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册