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