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

Skip to content

Commit 7e4ab4c

Browse files
committed
Revert "import all the frameworks that extend RegexString"
This reverts commit 84bc904. It caused ql/abstract-class-import alerts
1 parent 3b9335c commit 7e4ab4c

3 files changed

Lines changed: 0 additions & 7 deletions

File tree

python/ql/lib/semmle/python/regex.qll

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,6 @@ deprecated string mode_from_mode_object(Value obj) {
111111
)
112112
}
113113

114-
// importing all the frameworks that extend `RegexString`.
115-
private import semmle.python.frameworks.Django as Django1
116-
private import semmle.python.frameworks.Tornado as Tornado1
117-
private import semmle.python.web.django.General as Django2
118-
119114
/** A StrConst used as a regular expression */
120115
abstract class RegexString extends Expr {
121116
RegexString() { (this instanceof Bytes or this instanceof Unicode) }

python/ql/test/2/library-tests/locations/general/Locations.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
| Dict | 46 | 54 | 46 | 55 |
5656
| Dict | 48 | 9 | 48 | 19 |
5757
| DictUnpacking | 46 | 52 | 46 | 55 |
58-
| DjangoViewClassHelper | 4 | 1 | 4 | 8 |
5958
| Ellipsis | 7 | 7 | 7 | 9 |
6059
| Ellipsis | 50 | 14 | 50 | 16 |
6160
| ExceptStmt | 32 | 9 | 32 | 31 |

python/ql/test/3/library-tests/locations/general/Locations.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
| Dict | 46 | 54 | 46 | 55 |
4545
| Dict | 48 | 9 | 48 | 19 |
4646
| DictUnpacking | 46 | 52 | 46 | 55 |
47-
| DjangoViewClassHelper | 4 | 1 | 4 | 8 |
4847
| Ellipsis | 7 | 7 | 7 | 9 |
4948
| Ellipsis | 50 | 14 | 50 | 16 |
5049
| ExceptStmt | 32 | 9 | 32 | 31 |

0 commit comments

Comments
 (0)