parameters: (user)
return_statement: return user, None
docstring: splitpasswd('user:passwd') -> 'user', 'passwd'.
docstring_summary: splitpasswd('user:passwd') -> 'user', 'passwd'.
docstring_tokens: splitpasswd ( user : passwd ) - > user passwd .
function: def splitpasswd(user):
      """splitpasswd('user:passwd') -> 'user', 'passwd'."""
      global _passwdprog
      if _passwdprog is None:
          import re
          _passwdprog = re.compile('^([^:]*):(.*)$',re.S)
  
      match = _passwdprog.match(user)
      if match: return match.group(1, 2)
      return user, None
function_tokens: def splitpasswd ( user ) : global _passwdprog if _passwdprog is None : import re _passwdprog = re . compile ( '^([^:]*):(.*)$' , re . S ) match = _passwdprog . match ( user ) if match : return match . group ( 1 , 2 ) return user , None