From 28cfe78e6721f59f27f3df3a626ef61745143e00 Mon Sep 17 00:00:00 2001 From: lakshyacis Date: Tue, 8 Oct 2019 15:12:31 +0530 Subject: [PATCH] helper_random pylint fixes --- src/helper_random.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/helper_random.py b/src/helper_random.py index edc70a01..0785c737 100644 --- a/src/helper_random.py +++ b/src/helper_random.py @@ -1,6 +1,4 @@ -""" -Convenience functions for random operations. Not suitable for security / cryptography operations -""" +"""Convenience functions for random operations. Not suitable for security / cryptography operations.""" import os import random @@ -58,8 +56,7 @@ def randomrandrange(x, y=None): """ if isinstance(y, NoneType): return random.randrange(x) # nosec - else: - return random.randrange(x, y) # nosec + return random.randrange(x, y) # nosec def randomchoice(population):