Module ftplib :: Class Netrc
[hide private]
[frames] | no frames]

_ClassType Netrc

Class to parse & provide access to 'netrc' format files.

See the netrc(4) man page for information on the file format.

WARNING: This class is obsolete -- use module netrc instead.

Instance Methods [hide private]
 
__init__(self, filename=None)
 
get_hosts(self)
Return a list of hosts mentioned in the .netrc file.
 
get_account(self, host)
Returns login information for the named host.
 
get_macros(self)
Return a list of all defined macro names.
 
get_macro(self, macro)
Return a sequence of lines which define a named macro.
Class Variables [hide private]
  __defuser = None
  __defpasswd = None
  __defacct = None
Method Details [hide private]

get_account(self, host)

 

Returns login information for the named host.

The return value is a triple containing userid, password, and the accounting field.