Skip to content

Commit 7704a9e

Browse files
erik-kroghRasmusWL
andauthored
apply suggestions from Python review
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
1 parent 78ba765 commit 7704a9e

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

python/ql/lib/semmle/python/frameworks/Stdlib.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1845,7 +1845,7 @@ private module StdlibPrivate {
18451845
deprecated module SimpleHTTPServer = SimpleHttpServer;
18461846

18471847
// ---------------------------------------------------------------------------
1848-
// CgiHttpServer (Python 2 only)
1848+
// CGIHTTPServer (Python 2 only)
18491849
// ---------------------------------------------------------------------------
18501850
/** Gets a reference to the `CGIHTTPServer` module. */
18511851
API::Node cgiHttpServer() { result = API::moduleImport("CGIHTTPServer") }

python/ql/src/Security/CWE-327/PyOpenSSL.qll

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ class PyOpenSslContextCreation extends ContextCreation, DataFlow::CallCfgNode {
2424
}
2525
}
2626

27-
/** DEPRECATED: Alias for PyOpenSslContextCreation */
28-
deprecated class PyOpenSSLContextCreation = PyOpenSslContextCreation;
29-
3027
class ConnectionCall extends ConnectionCreation, DataFlow::CallCfgNode {
3128
ConnectionCall() {
3229
this = API::moduleImport("OpenSSL").getMember("SSL").getMember("Connection").getACall()
@@ -58,9 +55,6 @@ class UnspecificPyOpenSslContextCreation extends PyOpenSslContextCreation, Unspe
5855
UnspecificPyOpenSslContextCreation() { library instanceof PyOpenSsl }
5956
}
6057

61-
/** DEPRECATED: Alias for UnspecificPyOpenSslContextCreation */
62-
deprecated class UnspecificPyOpenSSLContextCreation = UnspecificPyOpenSslContextCreation;
63-
6458
class PyOpenSsl extends TlsLibrary {
6559
PyOpenSsl() { this = "pyOpenSSL" }
6660

@@ -89,6 +83,3 @@ class PyOpenSsl extends TlsLibrary {
8983
result instanceof UnspecificPyOpenSslContextCreation
9084
}
9185
}
92-
93-
/** DEPRECATED: Alias for PyOpenSsl */
94-
deprecated class PyOpenSSL = PyOpenSsl;

python/ql/src/Security/CWE-327/Ssl.qll

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ class SslContextCreation extends ContextCreation, DataFlow::CallCfgNode {
2727
}
2828
}
2929

30-
/** DEPRECATED: Alias for SslContextCreation */
31-
deprecated class SSLContextCreation = SslContextCreation;
32-
3330
class SslDefaultContextCreation extends ContextCreation {
3431
SslDefaultContextCreation() {
3532
this = API::moduleImport("ssl").getMember("create_default_context").getACall()
@@ -40,9 +37,6 @@ class SslDefaultContextCreation extends ContextCreation {
4037
override string getProtocol() { result = "TLS" }
4138
}
4239

43-
/** DEPRECATED: Alias for SslDefaultContextCreation */
44-
deprecated class SSLDefaultContextCreation = SslDefaultContextCreation;
45-
4640
/** Gets a reference to an `ssl.Context` instance. */
4741
API::Node sslContextInstance() {
4842
result = API::moduleImport("ssl").getMember(["SSLContext", "create_default_context"]).getReturn()
@@ -178,9 +172,6 @@ class UnspecificSslContextCreation extends SslContextCreation, UnspecificContext
178172
}
179173
}
180174

181-
/** DEPRECATED: Alias for UnspecificSslContextCreation */
182-
deprecated class UnspecificSSLContextCreation = UnspecificSslContextCreation;
183-
184175
class UnspecificSslDefaultContextCreation extends SslDefaultContextCreation, ProtocolUnrestriction {
185176
override DataFlow::Node getContext() { result = this }
186177

@@ -190,9 +181,6 @@ class UnspecificSslDefaultContextCreation extends SslDefaultContextCreation, Pro
190181
}
191182
}
192183

193-
/** DEPRECATED: Alias for UnspecificSslDefaultContextCreation */
194-
deprecated class UnspecificSSLDefaultContextCreation = UnspecificSslDefaultContextCreation;
195-
196184
class Ssl extends TlsLibrary {
197185
Ssl() { this = "ssl" }
198186

0 commit comments

Comments
 (0)