Fix DeleteCVS when the argument is an empty string

This commit is contained in:
rdb 2009-06-19 12:48:38 +00:00
parent b93529a96e
commit b115bba5de

View File

@ -533,6 +533,7 @@ def ConditionalWriteFile(dest,desiredcontents):
WriteFile(dest,desiredcontents)
def DeleteCVS(dir):
if dir == ".": dir = "."
for entry in os.listdir(dir):
if (entry != ".") and (entry != ".."):
subdir = dir + "/" + entry