Skip to content

Commit d75d520

Browse files
authored
Merge pull request github#3232 from RasmusWL/python-more-deprecated-annotations
Approved by BekaValentine
2 parents 7d86cce + b179a0b commit d75d520

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

python/ql/src/semmle/python/dataflow/TaintTracking.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ module DataFlow {
659659
}
660660
}
661661

662-
private class ConfigurationAdapter extends TaintTracking::Configuration {
662+
deprecated private class ConfigurationAdapter extends TaintTracking::Configuration {
663663
ConfigurationAdapter() { this instanceof Configuration }
664664

665665
override predicate isSource(DataFlow::Node node, TaintKind kind) {
@@ -727,7 +727,7 @@ module DataFlow {
727727
}
728728
}
729729

730-
private class DataFlowType extends TaintKind {
730+
deprecated private class DataFlowType extends TaintKind {
731731
DataFlowType() {
732732
this = "Data flow" and
733733
exists(DataFlow::Configuration c)

python/ql/src/semmle/python/types/Extensions.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ abstract deprecated class CustomPointsToFact extends @py_flow_node {
3737
abstract predicate pointsTo(Context context, Object value, ClassObject cls, ControlFlowNode origin);
3838
}
3939

40-
/* For backwards compatibility */
41-
class FinalCustomPointsToFact = CustomPointsToFact;
40+
/** DEPRECATED -- Use PointsToExtension instead */
41+
deprecated class FinalCustomPointsToFact = CustomPointsToFact;
4242

4343
abstract deprecated class CustomPointsToOriginFact extends CustomPointsToFact {
4444
abstract predicate pointsTo(Object value, ClassObject cls);
@@ -151,7 +151,7 @@ class ReModulePointToExtension extends PointsToExtension {
151151
private predicate pointsTo_helper(Context context) { context.appliesTo(this) }
152152
}
153153

154-
private class BackwardCompatiblePointToExtension extends PointsToExtension {
154+
deprecated private class BackwardCompatiblePointToExtension extends PointsToExtension {
155155
BackwardCompatiblePointToExtension() { this instanceof CustomPointsToFact }
156156

157157
override predicate pointsTo(Context context, ObjectInternal value, ControlFlowNode origin) {
@@ -174,7 +174,7 @@ private class BackwardCompatiblePointToExtension extends PointsToExtension {
174174
}
175175
}
176176

177-
private predicate additionalAttribute(
177+
deprecated private predicate additionalAttribute(
178178
ObjectInternal owner, string name, ObjectInternal value, ControlFlowNode origin
179179
) {
180180
exists(Object obj, ClassObject cls |

0 commit comments

Comments
 (0)