From: Mark Wooding Date: Sun, 14 Feb 2016 01:57:20 +0000 (+0000) Subject: gremlin/gremlin.in: Remove old debugging code. X-Git-Tag: 0.1.0~5 X-Git-Url: https://git.distorted.org.uk/~mdw/autoys/commitdiff_plain/a0b7938e51f8924da359b9772b6f60c4c107c87f gremlin/gremlin.in: Remove old debugging code. --- diff --git a/gremlin/gremlin.in b/gremlin/gremlin.in index 8d2cac0..9dbde3b 100755 --- a/gremlin/gremlin.in +++ b/gremlin/gremlin.in @@ -103,7 +103,6 @@ def charwidth(s): else: w += 1 ## Done. - #print ';; %r -> %d' % (s, w) return w class StatusLine (object): @@ -136,8 +135,6 @@ class StatusLine (object): ## Eyecandy update. if me.eyecandyp: - #print - #print ';; new status %r' % line ## If the old line was longer, we need to clobber its tail, so work out ## what that involves. @@ -159,7 +156,6 @@ class StatusLine (object): ## Actually do the output, all in one syscall. b = charwidth(me._last[i:]) SYS.stdout.write(pre + '\b'*b + line[i:]) - #print ';; => %r' % (pre + '\b'*b + line[i:]) SYS.stdout.flush() ## Update our idea of what's gone on. @@ -301,7 +297,6 @@ String = P.QuotedString('"', '\\') ## Handy abbreviations for constructed parser elements. def K(k): return P.Keyword(k).suppress() def D(d): return P.Literal(d).suppress() -##R = P.ZeroOrMore def R(p): return P.ZeroOrMore(p).setParseAction(lambda s, l, t: [t]) O = P.Optional