diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-09-25 15:48:50 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-09-25 15:48:50 (GMT) |
commit | 1654d74e9a6250491bfb923424c4cf83af2af7a6 (patch) | |
tree | ec3486c311f2dfcc5fb57f6dc99f471206b2d08d /Lib/lib2to3/refactor.py | |
parent | a820c7ca707f2c073acf560cedf4a1c723854276 (diff) | |
download | cpython-1654d74e9a6250491bfb923424c4cf83af2af7a6.zip cpython-1654d74e9a6250491bfb923424c4cf83af2af7a6.tar.gz cpython-1654d74e9a6250491bfb923424c4cf83af2af7a6.tar.bz2 |
switch assertion to an explicit ValueError
Diffstat (limited to 'Lib/lib2to3/refactor.py')
-rw-r--r-- | Lib/lib2to3/refactor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib2to3/refactor.py b/Lib/lib2to3/refactor.py index 7cd034a..38fb8ed 100644 --- a/Lib/lib2to3/refactor.py +++ b/Lib/lib2to3/refactor.py @@ -445,7 +445,7 @@ class RefactoringTool(object): try: find_root(node) - except AssertionError: + except ValueError: # this node has been cut off from a # previous transformation ; skip continue |