diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-07-18 06:25:50 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-07-18 06:25:50 (GMT) |
commit | 3d7d372ce326602b274f44338168688eeb907a3b (patch) | |
tree | 221b3b3ae862fe0b1d068efb97700b55bf0018cf /Doc/lib | |
parent | 182b5aca27d376b08a2904bed42b751496f932f3 (diff) | |
download | cpython-3d7d372ce326602b274f44338168688eeb907a3b.zip cpython-3d7d372ce326602b274f44338168688eeb907a3b.tar.gz cpython-3d7d372ce326602b274f44338168688eeb907a3b.tar.bz2 |
Whitespace normalization, via reindent.py.
Diffstat (limited to 'Doc/lib')
-rwxr-xr-x | Doc/lib/caseless.py | 4 | ||||
-rw-r--r-- | Doc/lib/email-dir.py | 2 | ||||
-rw-r--r-- | Doc/lib/minidom-example.py | 2 | ||||
-rwxr-xr-x | Doc/lib/required_1.py | 8 |
4 files changed, 7 insertions, 9 deletions
diff --git a/Doc/lib/caseless.py b/Doc/lib/caseless.py index b128219..cae94be 100755 --- a/Doc/lib/caseless.py +++ b/Doc/lib/caseless.py @@ -45,7 +45,7 @@ if __name__ == "__main__": print "ok: got OptionConflictError for -H" else: print "not ok: no conflict between -h and -H" - + parser.add_option("-f", "--file", dest="file") #print repr(parser.get_option("-f")) #print repr(parser.get_option("-F")) @@ -58,5 +58,3 @@ if __name__ == "__main__": (options, args) = parser.parse_args(["-F", "bar"]) assert options.file == "bar", options.file print "ok: case insensitive short options work" - - diff --git a/Doc/lib/email-dir.py b/Doc/lib/email-dir.py index bc26b3c..2d89a2f 100644 --- a/Doc/lib/email-dir.py +++ b/Doc/lib/email-dir.py @@ -66,7 +66,7 @@ def main(): sender = args[0] recips = args[1:] - + # Create the enclosing (outer) message outer = MIMEMultipart() outer['Subject'] = 'Contents of directory %s' % os.path.abspath(dir) diff --git a/Doc/lib/minidom-example.py b/Doc/lib/minidom-example.py index 3fa15dd..c30c4e0 100644 --- a/Doc/lib/minidom-example.py +++ b/Doc/lib/minidom-example.py @@ -35,7 +35,7 @@ def handleSlideshow(slideshow): def handleSlides(slides): for slide in slides: - handleSlide(slide) + handleSlide(slide) def handleSlide(slide): handleSlideTitle(slide.getElementsByTagName("title")[0]) diff --git a/Doc/lib/required_1.py b/Doc/lib/required_1.py index 44d5b30..6be5668 100755 --- a/Doc/lib/required_1.py +++ b/Doc/lib/required_1.py @@ -3,11 +3,11 @@ import optparse class OptionParser (optparse.OptionParser): def check_required (self, opt): - option = self.get_option(opt) + option = self.get_option(opt) - # Assumes the option's 'default' is set to None! - if getattr(self.values, option.dest) is None: - self.error("%s option not supplied" % option) + # Assumes the option's 'default' is set to None! + if getattr(self.values, option.dest) is None: + self.error("%s option not supplied" % option) parser = OptionParser() |