From 47ecf50f7c76b91d9ea9ca7c18e06f4cf1edb183 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Sun, 24 Nov 2019 18:30:14 +0100 Subject: [PATCH] Remove trailing whitespace --- SConstruct | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SConstruct b/SConstruct index 54fa11f..fe5c08e 100644 --- a/SConstruct +++ b/SConstruct @@ -28,9 +28,9 @@ def build_bin2h(target, source, env): """ Takes a list of files and converts them into a C source that can be included """ - def c_escape(str): + def c_escape(str): return str.translate(str.maketrans("/.-", "___")) - + print(target) print(source) with open(target[0].get_path(), "w") as fout: @@ -38,7 +38,7 @@ def build_bin2h(target, source, env): if "BIN2H_NAMESPACE" in env: fout.write("namespace %s {\n\n" % env["BIN2H_NAMESPACE"]) - + # write down data for src in source: with open(src.get_path(), "rb") as fin: @@ -64,9 +64,9 @@ def build_bin2h(target, source, env): if "BIN2H_NAMESPACE" in env: fout.write("} // namespace %s\n\n" % env["BIN2H_NAMESPACE"]) - + fout.write("/* EOF */\n") - + env = Environment(ENV=os.environ, BUILDERS = { 'DBusGlue' : Builder(action = build_dbus_glue), @@ -125,7 +125,7 @@ env.ParseConfig(env['PKG_CONFIG'] + " --cflags --libs libudev | sed 's/-I/-isyst f = open("VERSION") package_version = f.read() f.close() - + env.Append(CPPDEFINES = { 'PACKAGE_VERSION': "'\"%s\"'" % package_version }) conf = Configure(env)