mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

gary_williams
30.10.2008 581928d1779b4829631a81551d7e52bff70ca329
ensure files closed in aci tests
1 files modified
10 ■■■■ changed files
opends/tests/shared/python/security.py 10 ●●●● patch | view | raw | blame | history
opends/tests/shared/python/security.py
@@ -29,8 +29,12 @@
    aci_file = open(filename,"r")
    ret_str = ""
    for line in aci_file.readlines():
    try:
      for line in aci_file.readlines():
        aci_index = line.find("aci:")
        if aci_index > -1:
            ret_str = ret_str + line
    return ret_str
          ret_str = ret_str + line
      return ret_str
    finally:
      aci_file.close()