On stabilise le plugin Python en virant toute occurrence de print.
* Désolé. \o/
This commit is contained in:
parent
2c27a030ee
commit
4b36a51d99
102 changed files with 513 additions and 703 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue