From: Walter Dörwald Date: Thu, 20 Nov 2003 13:38:57 +0000 (+0000) Subject: Backport checkin: X-Git-Tag: v2.3.3c1~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c63a6e4afde3594a499046b0bf5d329b68ba9e8d;p=thirdparty%2FPython%2Fcpython.git Backport checkin: Fix typo fix. --- diff --git a/Lib/codeop.py b/Lib/codeop.py index b2adda479cdd..3d2a9fe7eece 100644 --- a/Lib/codeop.py +++ b/Lib/codeop.py @@ -1,12 +1,12 @@ r"""Utilities to compile possibly incomplete Python source code. This module provides two interfaces, broadly similar to the builtin -function compile(), that takes program text, a filename and a 'mode' +function compile(), which takes program text, a filename and a 'mode' and: -- Returns a code object if the command is complete and valid -- Returns None if the command is incomplete -- Raises SyntaxError, ValueError or OverflowError if the command is a +- Return a code object if the command is complete and valid +- Return None if the command is incomplete +- Raise SyntaxError, ValueError or OverflowError if the command is a syntax error (OverflowError and ValueError can be produced by malformed literals).