Module: check_mk
Branch: master
Commit: 465f4724cf6093bdfbd5b1dc7de8cf88d6865d63
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=465f4724cf6093…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri May 13 13:13:07 2011 +0200
Always set utf-8 encoding in precomiled files
---
modules/check_mk.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index f86a666..6095bc1 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -2033,6 +2033,7 @@ def precompile_hostcheck(hostname):
source_filename = compiled_filename + ".py"
output = file(source_filename, "w")
output.write("#!/usr/bin/python\n")
+ output.write("# encoding: utf-8\n")
output.write(stripped_python_file(modules_dir + "/check_mk_base.py"))
# initialize global variables