Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d18c160

Browse files
committed
Python: autoformat
1 parent cd85cf1 commit d18c160

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

python/ql/src/semmle/python/dataflow/new/internal/DataFlowPrivate.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ predicate subscriptReadStep(CfgNode nodeFrom, Content c, CfgNode nodeTo) {
11071107
*
11081108
*
11091109
* We illustrate the above steps on the assignment
1110-
*
1110+
*
11111111
* ```python
11121112
* (a, b) = ["a", SOURCE]
11131113
* ```
@@ -1116,23 +1116,23 @@ predicate subscriptReadStep(CfgNode nodeFrom, Content c, CfgNode nodeTo) {
11161116
* `["a", SOURCE]`: [ListElementContent]
11171117
*
11181118
* --Step 1-->
1119-
*
1119+
*
11201120
* `TIterableSequence((a, b))`: [ListElementContent]
11211121
*
11221122
* --Step 3-->
1123-
*
1123+
*
11241124
* `TIterableElement((a, b))`: []
11251125
*
11261126
* --Step 4-->
1127-
*
1127+
*
11281128
* `(a, b)`: [TupleElementContent(0)]
11291129
*
11301130
* --Step 5a-->
11311131
*
11321132
* `a`: []
1133-
*
1133+
*
11341134
* Meaning there is data-flow from the RHS to `a` (an over approximation). The same logic would be applied to show there is data-flow to `b`. Note that _Step 3_ and _Step 4_ would not have been needed if the RHS had been a tuple (since that would have been able to use _Step 2_ instead).
1135-
*
1135+
*
11361136
* Another, more complicated example:
11371137
* ```python
11381138
* (a, [b, *c]) = ["a", [SOURCE]]

0 commit comments

Comments
 (0)