Fix diff parser: Forgot that with statments are also flows

This commit is contained in:
Dave Halter
2019-01-06 15:39:10 +01:00
parent c442cf98be
commit 65a0748f4f
2 changed files with 27 additions and 2 deletions

View File

@@ -140,7 +140,7 @@ def _is_flow_node(node):
value = node.children[0].value
except AttributeError:
return False
return value in ('if', 'for', 'while', 'try')
return value in ('if', 'for', 'while', 'try', 'with')
class _PositionUpdatingFinished(Exception):