~mdw
/
autoys
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gremlin/gremlin.in: Remove old debugging code.
[autoys]
/
gremlin
/
gremlin.in
diff --git
a/gremlin/gremlin.in
b/gremlin/gremlin.in
index
8d2cac0
..
9dbde3b
100755
(executable)
--- a/
gremlin/gremlin.in
+++ b/
gremlin/gremlin.in
@@
-103,7
+103,6
@@
def charwidth(s):
else: w += 1
## Done.
else: w += 1
## Done.
- #print ';; %r -> %d' % (s, w)
return w
class StatusLine (object):
return w
class StatusLine (object):
@@
-136,8
+135,6
@@
class StatusLine (object):
## Eyecandy update.
if me.eyecandyp:
## 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.
## 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:])
## 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.
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()
## 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
def R(p): return P.ZeroOrMore(p).setParseAction(lambda s, l, t: [t])
O = P.Optional