From: Andrew M. Kuchling Date: Tue, 15 Jan 2008 01:29:16 +0000 (+0000) Subject: Typo fixes X-Git-Tag: v2.6a1~612 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ce9b184603330386bf29ba21b56cf846616c217;p=python Typo fixes --- diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 7dbf41e97e..6b88d613e2 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -266,7 +266,7 @@ always available. +------------------------------+------------------------------------------+ | :const:`no_site` | -S | +------------------------------+------------------------------------------+ - | :const:`ingnore_environment` | -E | + | :const:`ignore_environment` | -E | +------------------------------+------------------------------------------+ | :const:`tabcheck` | -t or -tt | +------------------------------+------------------------------------------+ diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 1b9b9d0b13..aafbfa3756 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -356,7 +356,7 @@ class SysModuleTest(unittest.TestCase): self.failUnless(sys.flags) attrs = ("debug", "py3k_warning", "division_warning", "division_new", "inspect", "interactive", "optimize", "dont_write_bytecode", - "no_site", "ingnore_environment", "tabcheck", "verbose", + "no_site", "ignore_environment", "tabcheck", "verbose", "unicode") for attr in attrs: self.assert_(hasattr(sys.flags, attr), attr) diff --git a/Python/sysmodule.c b/Python/sysmodule.c index cbdda18cf9..bbcd9578f9 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1065,11 +1065,11 @@ static PyStructSequence_Field flags_fields[] = { {"dont_write_bytecode", "-B"}, /* {"no_user_site", "-s"}, */ {"no_site", "-S"}, - {"ingnore_environment", "-E"}, + {"ignore_environment", "-E"}, {"tabcheck", "-t or -tt"}, {"verbose", "-v"}, #ifdef RISCOS - {"ricos_wimp", "???"}, + {"riscos_wimp", "???"}, #endif /* {"unbuffered", "-u"}, */ {"unicode", "-U"},