(password, uppercase=False)
return retVal.upper() if uppercase else retVal.lower()
>>> sha1_generic_passwd(password='testpass', uppercase=False)
    '206c80413b9a96c1312cc346b7d2517b84463edd'
>>> sha1_generic_passwd(password='testpass', uppercase=False)
    '206c80413b9a96c1312cc346b7d2517b84463edd'
>>> sha1_generic_passwd ( password = testpass uppercase = False ) 206c80413b9a96c1312cc346b7d2517b84463edd
def sha1_generic_passwd(password, uppercase=False):
    """
    >>> sha1_generic_passwd(password='testpass', uppercase=False)
    '206c80413b9a96c1312cc346b7d2517b84463edd'
    """

    retVal = sha1(password).hexdigest()

    return retVal.upper() if uppercase else retVal.lower()
def sha1_generic_passwd ( password , uppercase = False ) : retVal = sha1 ( password ) . hexdigest ( ) return retVal . upper ( ) if uppercase else retVal . lower ( )