diff --git a/cranslib/utils/exceptions.py b/cranslib/utils/exceptions.py index d00607b2..43d0471e 100644 --- a/cranslib/utils/exceptions.py +++ b/cranslib/utils/exceptions.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- coding: iso-8859-15 -*- +# -*- coding: utf-8 -*- # ############################################################# # .. # .... ............ ........ @@ -21,7 +21,7 @@ """ exceptions.py - Fonctions pour gérer les exceptions + Fonctions pour gérer les exceptions Copyright (c) 2006 by www.crans.org Some code, from cherrypy lib diff --git a/cranslib/utils/files.py b/cranslib/utils/files.py index cd720aa7..3485597e 100644 --- a/cranslib/utils/files.py +++ b/cranslib/utils/files.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- coding: iso-8859-15 -*- +# -*- coding: utf-8 -*- # ############################################################# # .. # .... ............ ........ @@ -34,11 +34,11 @@ def ageOfFile(pathToFile): return int(time.time()) - os.path.getmtime(pathToFile) def fileIsOlderThan(pathToFile, days=0, hours=0, minutes=0, seconds=0): - """teste si un fichier est plus vieux on non que la valeur donnée""" + """teste si un fichier est plus vieux on non que la valeur donnée""" time= (((days*24) + hours) * 60 + minutes) * 60 + seconds return ageOfFile(pathToFile) > time def dirIsEmpty(pathToDir): - """teste : répond True si le dossier est vide.""" + """teste : répond True si le dossier est vide.""" return os.listdir(pathToDir) == [] diff --git a/munin/webalizer_host_ b/munin/webalizer_host_ index e415f8a0..36ad3e7c 100755 --- a/munin/webalizer_host_ +++ b/munin/webalizer_host_ @@ -1,13 +1,13 @@ #!/usr/bin/env python -# -*- coding: iso-8859-15 -*- +# -*- coding: utf-8 -*- -# Représentation des navigateurs utilisés +# Représentation des navigateurs utilisés import sys, commands, string, re from time import strftime from operator import add -# On prend l'argument pour définir la table à analyser +# On prend l'argument pour définir la table à analyser SITE = sys.argv[0].split('_')[1] # nom de la machine diff --git a/utils/stats_ip.py b/utils/stats_ip.py index abcdb9d4..52bb4b03 100755 --- a/utils/stats_ip.py +++ b/utils/stats_ip.py @@ -1,5 +1,5 @@ #! /usr/bin/env python -# -*- coding: iso8859-15 -*- +# -*- coding: utf-8 -*- import sys sys.path.append('/usr/scripts/gestion')