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 | ba66c2280f47747ab8ed3c7a8c5d5e989a63ebbb (patch) | |
| tree | 9be05aae21dbc441056624033ce5d1920980d3ab /Lib/lib2to3/refactor.py | |
| parent | 0dea936e788a760e5d4dafb36b8584771b52da3c (diff) | |
| download | cpython-ba66c2280f47747ab8ed3c7a8c5d5e989a63ebbb.zip cpython-ba66c2280f47747ab8ed3c7a8c5d5e989a63ebbb.tar.gz cpython-ba66c2280f47747ab8ed3c7a8c5d5e989a63ebbb.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 badcac2..a4c168d 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 |
