Mercurial > cpython-lru_cache-weakref
diff Lib/codeop.py @ 30985:fdc8a88a9a5a 2.3
Backport checkin:
Fix typo fix.
| author | Walter Dörwald <walter@livinglogic.de> |
|---|---|
| date | Thu, 20 Nov 2003 13:38:57 +0000 |
| parents | 53d2813395f4 |
| children |
line wrap: on
line diff
--- a/Lib/codeop.py Wed Nov 19 13:37:01 2003 +0000 +++ b/Lib/codeop.py Thu Nov 20 13:38:57 2003 +0000 @@ -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).
