summarylogtreecommitdiffstats
path: root/rbgen.in.patch
blob: 4ec70ac73196e211fc92ef5b3253851b5e18d4ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
diff --git a/rbgen.in b/rbgen.in
index 7387b3a..3fdb1f4 100644
--- a/rbgen.in
+++ b/rbgen.in
@@ -6,7 +6,7 @@
 #
 # $Log: rbgen.in,v $
 # Revision 1.3  2003/10/24 01:31:21  damo
-# Patches from Eric Raymond: %prefix is implemented.  Various other small
+# Patches from Eric Raymond: %prefix is implemented. Various other small
 # changes avoid stepping on global namespaces and improve the documentation.
 #
 # Revision 1.2  2003/10/23 04:18:47  damo
@@ -78,7 +78,7 @@ def redblack(filename, lines):
                 if line[0] == "\n":
                     continue
                 elif startswith(line, "%%rbgen"):
-		    fpout.write("#define RB_CUSTOMIZE\n")
+                    fpout.write("#define RB_CUSTOMIZE\n")
                     if not rb_type:
                         error("%type directive is required.")
                     else:
@@ -124,9 +124,9 @@ def redblack(filename, lines):
                         else:
                             error("unknown access type")
                     elif tokens[0] == "%omit":
-                        omittable = ("destroy", "search", "find", 
+                        omittable = ("destroy", "search", "find",
                                      "delete", "walk", "readlist",
-                                     "lookup", "destroy", "delete", 
+                                     "lookup", "destroy", "delete",
                                      "readlist")
                         rb_omit = tokens[1:]
                         for func in rb_omit:
@@ -153,9 +153,9 @@ if __name__ == "__main__":
     lines = 1;
     skelpath = [".", "@prefix@/share/@PACKAGE@" "/share/redblack"]
     for (switch, val) in options:
-	if (switch == '-l'):
-	    lines = 0
-	elif (switch == '-S'):
+        if (switch == '-l'):
+            lines = 0
+        elif (switch == '-S'):
             skeldir = val
 
     for skeldir in skelpath:
@@ -172,7 +172,7 @@ if __name__ == "__main__":
             raise SystemExit, 0
         except SyntaxError:
             raise SystemExit, 1
-        
+
 # The following sets edit modes for GNU EMACS
 # Local Variables:
 # mode:python