Merge pull request #1112 from ceramicskate0/patch-2

Update helpers.py
fix-for-1142
Chris Ross 2018-05-15 10:10:11 -04:00 committed by GitHub
commit ce88725e19
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):
"""