From a64f268344df1d32cafbf703a9894c22376e6a4c Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 20 Jul 2017 11:12:17 -0400 Subject: [PATCH] Remove unused random_string method --- endpoints/common.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/endpoints/common.py b/endpoints/common.py index 50eccc0f4..6a18d1f0b 100644 --- a/endpoints/common.py +++ b/endpoints/common.py @@ -98,9 +98,6 @@ def common_login(db_user, permanent_session=True): logger.debug('User could not be logged in, inactive?.') return False -def random_string(): - random = SystemRandom() - return ''.join([random.choice(string.ascii_uppercase + string.digits) for _ in range(8)]) def list_files(path, extension): import os