Skip to content

Commit 5af351e

Browse files
authored
Merge pull request github#3275 from RasmusWL/python-fix-points-to-deprecations
Python: Remove deprecated annotation for old PointsTo::points_to
2 parents 2fb711e + 32a9726 commit 5af351e

File tree

5 files changed

+1
-6
lines changed

5 files changed

+1
-6
lines changed

python/ql/src/semmle/python/pointsto/PointsTo.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ module PointsTo {
114114

115115
/* Backwards compatibility */
116116
cached
117-
deprecated predicate points_to(
117+
predicate points_to(
118118
ControlFlowNode f, PointsToContext context, Object obj, ClassObject cls, ControlFlowNode origin
119119
) {
120120
exists(ObjectInternal value |

python/ql/test/3/library-tests/PointsTo/consts/BooleanConstants.expected

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
WARNING: Predicate points_to has been deprecated and may be removed in future (BooleanConstants.ql:6,25-44)
2-
WARNING: Predicate points_to has been deprecated and may be removed in future (BooleanConstants.ql:7,29-48)
31
| module.py | 2 | ControlFlowNode for ImportExpr | import | true |
42
| module.py | 2 | ControlFlowNode for sys | import | true |
53
| module.py | 3 | ControlFlowNode for Compare | import | false |

python/ql/test/library-tests/PointsTo/extensions/Extend.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
WARNING: Predicate points_to has been deprecated and may be removed in future (Extend.ql:50,32-51)
21
WARNING: Type CustomPointsToAttribute has been deprecated and may be removed in future (Extend.ql:22,34-57)
32
WARNING: Type CustomPointsToObjectFact has been deprecated and may be removed in future (Extend.ql:38,32-56)
43
WARNING: Type CustomPointsToOriginFact has been deprecated and may be removed in future (Extend.ql:5,28-52)

python/ql/test/library-tests/PointsTo/new/PointsToWithContext.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
WARNING: Predicate points_to has been deprecated and may be removed in future (PointsToWithContext.ql:7,7-26)
21
| a_simple.py:2 | ControlFlowNode for FloatLiteral | float 1.0 | builtin-class float | 2 | import |
32
| a_simple.py:2 | ControlFlowNode for f1 | float 1.0 | builtin-class float | 2 | import |
43
| a_simple.py:3 | ControlFlowNode for dict | builtin-class dict | builtin-class type | 3 | import |

python/ql/test/library-tests/PointsTo/new/PointsToWithType.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
WARNING: Predicate points_to has been deprecated and may be removed in future (PointsToWithType.ql:6,7-26)
21
| a_simple.py:2 | ControlFlowNode for FloatLiteral | float 1.0 | builtin-class float | 2 |
32
| a_simple.py:2 | ControlFlowNode for f1 | float 1.0 | builtin-class float | 2 |
43
| a_simple.py:3 | ControlFlowNode for dict | builtin-class dict | builtin-class type | 3 |

0 commit comments

Comments
 (0)