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

gary_williams
30.10.2008 1fbfc81cd69c01ab24f4e915c7cf07d8f1a85ac6
ensure files closed in aci tests
1 files modified
10 ■■■■ changed files
opendj-sdk/opends/tests/shared/python/security.py 10 ●●●● patch | view | raw | blame | history
opendj-sdk/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()