]> granicus.if.org Git - python/commit
Eric Raymond:
authorGuido van Rossum <guido@python.org>
Mon, 1 May 2000 20:08:46 +0000 (20:08 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 1 May 2000 20:08:46 +0000 (20:08 +0000)
commiteb4e11ae44c48bde77405584e8834d3ace57144b
treed7241b059c6f69e6ede74d68124ff390be1845da
parentb16d197d661915bf16c84e06cb07e1f7a934ad10
Eric Raymond:

Added and documented the capability for shlex to handle lexical-level
inclusion and a stack of input sources.  Also, the input stream member
is now documented, and the constructor takes an optional source-filename.
The class provides facilities to generate error messages that track
file and line number.

[GvR: I changed the __main__ code so that it actually stops at EOF, as
Eric surely intended -- however it returned '' instead of the None he
was testing for.]
Lib/shlex.py