On stabilise le plugin Python en virant toute occurrence de print.

* Désolé. \o/
This commit is contained in:
Pierre-Elliott Bécue 2015-05-14 07:19:56 +02:00
parent 2c27a030ee
commit 4b36a51d99
102 changed files with 513 additions and 703 deletions

View file

@ -26,7 +26,7 @@ sys.path.append('/usr/scripts/gestion')
def comment(line):
'''Ecrit un commentaire'''
out(comment_start + " " + line + "\n")
out(comment_start + " " + line)
emacs_mode = "conf-unix"
@ -42,12 +42,12 @@ def header(desc=None, mode=None):
lines.pop()
for line in lines:
comment(line)
out("\n")
out()
def var(name, value, doc=None):
'''Ecrit la definition d'une variable'''
if doc: comment(doc)
out("%s = %s\n" % (name, value))
out("%s = %s" % (name, value))
# Le nom d'hote court, la partie avant le premier '.'
hostname = metadata.hostname.split('.',1)[0]
@ -78,4 +78,3 @@ def onoff(b):
def outl(line):
out(line)
out("\n")