Gentoo Archives: gentoo-commits

From: Sven Vermeulen <sven.vermeulen@××××××.be>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: support/
Date: Mon, 30 Apr 2012 18:30:01
Message-Id: 1335810428.7ca373dc8b60c87af8ca3a0ee238f529f893e8eb.SwifT@gentoo
1 commit: 7ca373dc8b60c87af8ca3a0ee238f529f893e8eb
2 Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
3 AuthorDate: Mon Apr 30 18:27:08 2012 +0000
4 Commit: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
5 CommitDate: Mon Apr 30 18:27:08 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=7ca373dc
7
8 Some more whitespace fixes
9
10 Found a few more 8xspaces mixed with tabs here and there. Updated as Python3 doesn't accept that.
11
12 ---
13 support/genclassperms.py | 8 ++++----
14 support/sedoctool.py | 18 +++++++++---------
15 2 files changed, 13 insertions(+), 13 deletions(-)
16
17 diff --git a/support/genclassperms.py b/support/genclassperms.py
18 index 732d645..6d6ce8b 100644
19 --- a/support/genclassperms.py
20 +++ b/support/genclassperms.py
21 @@ -287,10 +287,10 @@ def error(error):
22 Print an error message and exit.
23 """
24
25 - sys.stderr.write("%s exiting for: " % sys.argv[0])
26 - sys.stderr.write("%s\n" % error)
27 - sys.stderr.flush()
28 - sys.exit(1)
29 + sys.stderr.write("%s exiting for: " % sys.argv[0])
30 + sys.stderr.write("%s\n" % error)
31 + sys.stderr.flush()
32 + sys.exit(1)
33
34 # MAIN PROGRAM
35 app_name = sys.argv[0]
36
37 diff --git a/support/sedoctool.py b/support/sedoctool.py
38 index 5bbaf76..aad7f99 100644
39 --- a/support/sedoctool.py
40 +++ b/support/sedoctool.py
41 @@ -1,7 +1,7 @@
42 #!/usr/bin/python
43
44 # Author: Joshua Brindle <jbrindle@××××××.com>
45 -# Caleb Case <ccase@××××××.com>
46 +# Caleb Case <ccase@××××××.com>
47 #
48 # Copyright (C) 2005 - 2006 Tresys Technology, LLC
49 # This program is free software; you can redistribute it and/or modify
50 @@ -80,7 +80,7 @@ def gen_booleans_conf(doc, file_name, namevalue_list):
51 bool_val = BOOL_DISABLED
52
53 if bool_name and bool_val:
54 - file_name.write("%s = %s\n\n" % (bool_name, bool_val))
55 + file_name.write("%s = %s\n\n" % (bool_name, bool_val))
56 bool_name = bool_val = None
57
58 # tunables are currently implemented as booleans
59 @@ -105,7 +105,7 @@ def gen_booleans_conf(doc, file_name, namevalue_list):
60 bool_val = BOOL_DISABLED
61
62 if bool_name and bool_val:
63 - file_name.write("%s = %s\n\n" % (bool_name, bool_val))
64 + file_name.write("%s = %s\n\n" % (bool_name, bool_val))
65 bool_name = bool_val = None
66
67 def gen_module_conf(doc, file_name, namevalue_list):
68 @@ -364,7 +364,7 @@ def gen_docs(doc, working_dir, templatedir):
69 #arg, i have to go through this dom tree ahead of time to build up the menus
70 module_list = {}
71 for node in doc.getElementsByTagName("module"):
72 - mod_name = mod_layer = interface_buf = ''
73 + mod_name = mod_layer = interface_buf = ''
74
75 mod_name = node.getAttribute("name")
76 mod_layer = node.parentNode.getAttribute("name")
77 @@ -428,7 +428,7 @@ def gen_docs(doc, working_dir, templatedir):
78 all_tunables = []
79 all_booleans = []
80 for node in doc.getElementsByTagName("module"):
81 - mod_name = mod_layer = mod_desc = interface_buf = ''
82 + mod_name = mod_layer = mod_desc = interface_buf = ''
83
84 mod_name = node.getAttribute("name")
85 mod_layer = node.parentNode.getAttribute("name")
86 @@ -753,10 +753,10 @@ def error(error):
87 Print an error message and exit.
88 """
89
90 - sys.stderr.write("%s exiting for: " % sys.argv[0])
91 - sys.stderr.write("%s\n" % error)
92 - sys.stderr.flush()
93 - sys.exit(1)
94 + sys.stderr.write("%s exiting for: " % sys.argv[0])
95 + sys.stderr.write("%s\n" % error)
96 + sys.stderr.flush()
97 + sys.exit(1)
98
99 def warning(warn):
100 """