parameters: (password, uppercase=False)
return_statement: return retVal.upper() if uppercase else retVal.lower()
docstring: >>> sha1_generic_passwd(password='testpass', uppercase=False)
      '206c80413b9a96c1312cc346b7d2517b84463edd'
docstring_summary: >>> sha1_generic_passwd(password='testpass', uppercase=False)
      '206c80413b9a96c1312cc346b7d2517b84463edd'
docstring_tokens: >>> sha1_generic_passwd ( password = testpass uppercase = False ) 206c80413b9a96c1312cc346b7d2517b84463edd
function: 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()
function_tokens: def sha1_generic_passwd ( password , uppercase = False ) : retVal = sha1 ( password ) . hexdigest ( ) return retVal . upper ( ) if uppercase else retVal . lower ( )