File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 13
13
14
14
def jitter ():
15
15
"""Return a random number between 0 and 1."""
16
- return random .randrange (2 )
16
+ return random .randrange (2 ) # nosec
17
17
18
18
19
19
def backoff (retries ):
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ def get_graph_svg(cls):
213
213
"""
214
214
graph = cls .get_graph ()
215
215
graph .format = 'svg'
216
- return SafeString (graph .pipe ().decode ('utf-8' ))
216
+ return SafeString (graph .pipe ().decode ('utf-8' )) # nosec
217
217
218
218
def get_instance_graph (self ):
219
219
"""Return process instance graph."""
@@ -264,7 +264,7 @@ def get_instance_graph_svg(self, output_format='svg'):
264
264
"""
265
265
graph = self .get_instance_graph ()
266
266
graph .format = output_format
267
- return SafeString (graph .pipe ().decode ('utf-8' ))
267
+ return SafeString (graph .pipe ().decode ('utf-8' )) # nosec
268
268
269
269
def save (self , ** kwargs ):
270
270
if self .pk :
You can’t perform that action at this time.
0 commit comments