summaryrefslogtreecommitdiff
blob: 9f4db14a2eec2f395d4b3a451276a9bb0999c8ac (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
 grc   | 2 ++
 grcat | 8 +++-----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/grc b/grc
index 56a53b4..19afe7c 100755
--- a/grc
+++ b/grc
@@ -1,5 +1,7 @@
 #! /usr/bin/python
 
+from __future__ import print_function
+
 import os, re, string, sys, getopt, signal
 
 def version():
diff --git a/grcat b/grcat
index a4e6dd9..16586e2 100755
--- a/grcat
+++ b/grcat
@@ -1,5 +1,7 @@
 #! /usr/bin/python
 
+from __future__ import print_function
+
 import sys, os, string, re, signal, errno
 
 #some default definitions
@@ -140,11 +142,7 @@ while not is_last:
     # do not try to understand the optimized form below :-)
     if 'colours' in ll:
         colstrings = list(
-                        map(
-                            lambda colgroup:
-                                ''.join(map(lambda x: get_colour(x), split(colgroup))),
-                                split(ll['colours'], ',')
-                            )
+                        [''.join([get_colour(x) for x in split(colgroup)]) for colgroup in split(ll['colours'], ',')]
                         )
         ll['colours'] = colstrings