summaryrefslogtreecommitdiffstats
path: root/Lib/token.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-12-21 22:38:40 (GMT)
committerGuido van Rossum <guido@python.org>1999-12-21 22:38:40 (GMT)
commit80c33e562ddcc0af4eed6708aa30603972e62cfc (patch)
tree14c703ada90eee7d2230ab1439fa515cd74463db /Lib/token.py
parentb9bdfc6a230f846a1cd1c681def83cf04d357587 (diff)
downloadcpython-80c33e562ddcc0af4eed6708aa30603972e62cfc.zip
cpython-80c33e562ddcc0af4eed6708aa30603972e62cfc.tar.gz
cpython-80c33e562ddcc0af4eed6708aa30603972e62cfc.tar.bz2
Contribution from Gerrit Holl:
This patch changes the string-based exceptions to class-based exceptions, so that you can fetch the unknown option as an attribute. As far as I know, it is backward compatible. [The new exception class is called GetoptError; the name error is an alias for compatibility.]
Diffstat (limited to 'Lib/token.py')
0 files changed, 0 insertions, 0 deletions