##// END OF EJS Templates
use writelines when writing _sysinfo.py
MinRK -
Show More
@@ -389,9 +389,8 b' def record_commit_info(pkg_dir, build_cmd=build_py):'
389 389 # We write the installation commit even if it's empty
390 390 out_pth = pjoin(self.build_lib, pkg_dir, 'utils', '_sysinfo.py')
391 391 with io.open(out_pth, 'w') as out_file:
392 for line in [
393 u"# GENERATED BY setup.py",
394 u"commit = '%s'" % repo_commit,
395 ]:
396 out_file.write(line + u'\n')
392 out_file.writelines([
393 u"# GENERATED BY setup.py\n",
394 u"commit = '%s'\n" % repo_commit,
395 ])
397 396 return MyBuildPy
General Comments 0
You need to be logged in to leave comments. Login now