コード例 #1
0
def standard_read_self():
    test_data = []
    fd = open(__file__, "r")
    for line in fd:
        test_data.append(line)
    fd.close()
    return test_data
コード例 #2
0
def standard_read_self():
    test_data = []
    fd = open(__file__, "r")
    for line in fd:
        test_data.append(line)
    fd.close()
    return test_data
コード例 #3
0
ファイル: simple.py プロジェクト: BoBSonSeungHo/owasp-pysec
 def close(self):
     self._write()
     fd = getattr(self, 'frd')
     if fd:
         fd.close()
     fd = getattr(self, 'fwr')
     if fd:
         fd.close()
コード例 #4
0
 def close(self):
     self._write()
     fd = getattr(self, 'frd')
     if fd:
         fd.close()
     fd = getattr(self, 'fwr')
     if fd:
         fd.close()