Skip to content

Commit c807ab4

Browse files
RasmusWLyoff
andauthored
Python: Apply suggestions from code review
Co-authored-by: yoff <[email protected]>
1 parent bf9a0da commit c807ab4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/ql/lib/semmle/python/security/dataflow/LogInjectionCustomizations.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ module LogInjection {
5151
this = any(Logging write).getAnInput() and
5252
// since the inner implementation of the `logging.Logger.warn` function is
5353
// ```py
54-
// class Logger
54+
// class Logger:
5555
// def warn(self, msg, *args, **kwargs):
56-
// warnings.warn("The 'warn' method is deprecated, "
57-
// "use 'warning' instead", DeprecationWarning, 2)
58-
// self.warning(msg, *args, **kwargs)
56+
// warnings.warn("The 'warn' method is deprecated, "
57+
// "use 'warning' instead", DeprecationWarning, 2)
58+
// self.warning(msg, *args, **kwargs)
5959
// ```
6060
// any time we would report flow to such a logging sink, we can ALSO report
6161
// the flow to the `self.warning` sink -- obviously we don't want that.

0 commit comments

Comments
 (0)