Commit 1d4e3aed by Vincent Pelletier

slapos.grid.SlapObject: Get rid noisy and pointless comment.

Comment duplicates the url. It is available 3 lines below, thank you very
much.
Comment assumes resulting file is actually intended for viewer to edit it,
which is wrong.

So just leave the comment out altogether, as it does not bring any value.
Also, allows simplifying code.
1 parent f28e22b1
......@@ -36,7 +36,6 @@ import stat
import subprocess
import tarfile
import tempfile
import textwrap
import time
import xmlrpclib
......@@ -273,14 +272,7 @@ class Software(object):
def _create_buildout_profile(self, buildout_cfg, url):
with open(buildout_cfg, 'wb') as fout:
fout.write(textwrap.dedent("""\
# Created by slapgrid. extends {url}
# but you can change it for development purposes.
[buildout]
extends =
{url}
""".format(url=url)))
fout.write('[buildout]\nextends = ' + url + '\n')
self._set_ownership(buildout_cfg)
def uploadSoftwareRelease(self, tarpath):
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!