summaryrefslogtreecommitdiffstats
path: root/Demo/tkinter/guido/ManPage.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-08-02 23:30:09 (GMT)
committerGeorg Brandl <georg@python.org>2010-08-02 23:30:09 (GMT)
commit0db85e5d46d0c0e57377c0bdbfdccb91eb36ec64 (patch)
treedb1be0ea08df48f2b46af255e528bed14f2964d3 /Demo/tkinter/guido/ManPage.py
parent36f72d339698b651b944fc1ed227a57ecc81bd5e (diff)
downloadcpython-0db85e5d46d0c0e57377c0bdbfdccb91eb36ec64.zip
cpython-0db85e5d46d0c0e57377c0bdbfdccb91eb36ec64.tar.gz
cpython-0db85e5d46d0c0e57377c0bdbfdccb91eb36ec64.tar.bz2
Fix-up some tkinter demos.
Diffstat (limited to 'Demo/tkinter/guido/ManPage.py')
-rw-r--r--Demo/tkinter/guido/ManPage.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Demo/tkinter/guido/ManPage.py b/Demo/tkinter/guido/ManPage.py
index a9309a3..d4b4abe 100644
--- a/Demo/tkinter/guido/ManPage.py
+++ b/Demo/tkinter/guido/ManPage.py
@@ -107,13 +107,13 @@ class EditableManPage(ScrolledText):
# Save this line -- we need one line read-ahead
self.buffer = nextline
return
- if emptyprog.match(self.buffer) >= 0:
+ if emptyprog.match(self.buffer):
# Buffered line was empty -- set a flag
self.empty = 1
self.buffer = nextline
return
textline = self.buffer
- if ulprog.match(nextline) >= 0:
+ if ulprog.match(nextline):
# Next line is properties for buffered line
propline = nextline
self.buffer = None
@@ -127,7 +127,7 @@ class EditableManPage(ScrolledText):
self.ok = 1
self.empty = 0
return
- if footerprog.match(textline) >= 0:
+ if footerprog.match(textline):
# Footer -- start skipping until next non-blank line
self.ok = 0
self.empty = 0
@@ -190,7 +190,7 @@ def test():
import os
import sys
# XXX This directory may be different on your system
- MANDIR = '/usr/local/man/mann'
+ MANDIR = ''
DEFAULTPAGE = 'Tcl'
formatted = 0
if sys.argv[1:] and sys.argv[1] == '-f':