Update helpers.py

fix-for-1142
Ceramicskate0 2018-05-08 06:40:43 -05:00 committed by GitHub
parent 142e9b2236
commit bf8eca9b2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -155,10 +155,10 @@ def random_string(length=-1, charset=string.ascii_letters):
def generate_random_script_var_name(origvariname,globDebug=False):
if globDebug:
hash_object=hashlib.sha1(str(origvariname)+str(globentropy)).hexdigest()
return hash_object[:-datetime.datetime.today().day]
else:
return origvariname
else:
hash_object=hashlib.sha1(str(origvariname)+str(globentropy)).hexdigest()
return hash_object[:-datetime.datetime.today().day]
def randomize_capitalization(data):
"""