mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-10 06:31:57 +08:00
Fix diff parser: Forgot that with statments are also flows
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user