Commit 1d4e3aed authored by Vincent Pelletier's avatar 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.
parent f28e22b1
...@@ -36,7 +36,6 @@ import stat ...@@ -36,7 +36,6 @@ import stat
import subprocess import subprocess
import tarfile import tarfile
import tempfile import tempfile
import textwrap
import time import time
import xmlrpclib import xmlrpclib
...@@ -273,14 +272,7 @@ class Software(object): ...@@ -273,14 +272,7 @@ class Software(object):
def _create_buildout_profile(self, buildout_cfg, url): def _create_buildout_profile(self, buildout_cfg, url):
with open(buildout_cfg, 'wb') as fout: with open(buildout_cfg, 'wb') as fout:
fout.write(textwrap.dedent("""\ fout.write('[buildout]\nextends = ' + url + '\n')
# Created by slapgrid. extends {url}
# but you can change it for development purposes.
[buildout]
extends =
{url}
""".format(url=url)))
self._set_ownership(buildout_cfg) self._set_ownership(buildout_cfg)
def uploadSoftwareRelease(self, tarpath): def uploadSoftwareRelease(self, tarpath):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment