Lines Matching refs:fd
146 with open(self._error_log, 'a') as fd:
147 fd.write('start of server\n')
148 with open(os.path.join(self._apache_dir, 'xxx'), 'a') as fd:
149 fd.write('start of server\n')
229 with open(os.path.join(self._docs_dir, 'data.json'), 'w') as fd:
233 fd.write(JSONEncoder().encode(data))
234 with open(os.path.join(self._docs_dir, 'two/data.json'), 'w') as fd:
238 fd.write(JSONEncoder().encode(data))
240 with open(self._basic_passwords, 'w') as fd:
241 fd.write('proxy:$apr1$FQfeInbs$WQZbODJlVg60j0ogEIlTW/\n')
243 with open(self._digest_passwords, 'w') as fd:
244 fd.write('test:restricted area:57123e269fd73d71ae0656594e938e2f\n')
246 with open(os.path.join(self.docs_dir, 'restricted/digest/data.json'), 'w') as fd:
247 fd.write('{"area":"digest"}\n')
248 with open(self._conf_file, 'w') as fd:
251 fd.write(f'LoadModule {m}_module "{self._mods_dir}/mod_{m}.so"\n')
253 fd.write(f'LoadModule curltest_module "{Httpd.MOD_CURLTEST}"\n')
381 fd.write("\n".join(conf))
382 with open(os.path.join(self._conf_dir, 'mime.types'), 'w') as fd:
383 fd.write("\n".join([