eric5-api.py

changeset 245
de5c4effc747
parent 188
98eb4145b4e4
child 253
3ccdf551bde7
equal deleted inserted replaced
243:a1d982e68edf 245:de5c4effc747
248 outdir = os.path.dirname(outputFile) 248 outdir = os.path.dirname(outputFile)
249 if outdir and not os.path.exists(outdir): 249 if outdir and not os.path.exists(outdir):
250 os.makedirs(outdir) 250 os.makedirs(outdir)
251 try: 251 try:
252 out = open(outputFile, "w", encoding = "utf-8") 252 out = open(outputFile, "w", encoding = "utf-8")
253 out.write(os.linesep.join(sorted(apis))) 253 out.write("\n".join(sorted(apis)))
254 out.close() 254 out.close()
255 except IOError as v: 255 except IOError as v:
256 sys.stderr.write("%s error: %s\n" % (outputFile, v[1])) 256 sys.stderr.write("%s error: %s\n" % (outputFile, v[1]))
257 sys.exit(3) 257 sys.exit(3)
258 258

eric ide

mercurial