]> granicus.if.org Git - python/commit
If a function contains a doc string, remove the doc string node from
authorJeremy Hylton <jeremy@alum.mit.edu>
Mon, 6 Nov 2000 03:33:52 +0000 (03:33 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Mon, 6 Nov 2000 03:33:52 +0000 (03:33 +0000)
commita59ac0a7df57b9081aa08d7e89451e563c58faf9
tree442d2be09c87a713759ee4a927f05aa7daa79420
parentd3d7bb1c315eef797dd9ccc952cb232269cb4b49
If a function contains a doc string, remove the doc string node from
the function's body.

If assert is used without an error message, make the AST node None
rather than Name('None').
Lib/compiler/transformer.py
Tools/compiler/compiler/transformer.py