Corrections.
darcs-hash:20080209020948-af139-3a259bbab9d382b1c72a5d3087e47641b1f87417.gz
This commit is contained in:
parent
aa9724e031
commit
5d6f9722bb
2 changed files with 8 additions and 8 deletions
|
@ -26,16 +26,16 @@ sys.path.append('/usr/scripts/gestion')
|
|||
|
||||
def comment(line):
|
||||
'''Écrit un commentaire'''
|
||||
out(comment_start + " " + line + "\n")
|
||||
out("# " + line + "\n")
|
||||
|
||||
emacs_mode = "conf-unix"
|
||||
|
||||
def header(desc=None, mode=None):
|
||||
'''Écrit une en-tête de fichier avec un commentaire'''
|
||||
comment("-*- mode: %s; coding: utf-8 -*-" % (mode or emacs_mode))
|
||||
comment("")
|
||||
comment("Fichier gere par BCfg2 (avec le plugin Python)")
|
||||
comment("")
|
||||
@#
|
||||
@# Fichier gere par BCfg2
|
||||
@#
|
||||
if desc:
|
||||
lines = desc.split('\n')
|
||||
if lines[-1] == "":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue