Home
last modified time | relevance | path

Searched refs:netrc (Results 1 - 11 of 11) sorted by relevance

/third_party/python/Lib/test/
H A Dtest_netrc.py1 import netrc, os, unittest, sys, textwrap namespace
21 nrc = netrc.netrc(temp_filename)
57 self.assertRaises(netrc.NetrcParseError, self.make_nrc,
95 self.assertRaises(netrc.NetrcParseError, self.make_nrc, item)
282 fn = os.path.join(d, '.netrc')
291 nrc = netrc.netrc()
295 self.assertRaises(netrc.NetrcParseError, netrc
[all...]
/third_party/python/Lib/
H A Dnetrc.py1 """An object-oriented interface to .netrc files."""
7 __all__ = ["netrc", "NetrcParseError"]
11 """Exception raised on syntax errors in the .netrc file."""
66 class netrc: class
70 file = os.path.join(os.path.expanduser("~"), ".netrc")
158 (f"~/.netrc file owner ({fowner}, {user}) does not match"
162 "~/.netrc access too permissive: access"
176 """Dump the class data in the format of a .netrc file."""
192 print(netrc())
H A Dnntplib.py325 - usenetrc: allow loading username and password from ~/.netrc file
944 # If no login/password was specified but netrc was requested,
945 # try to get them from ~/.netrc
946 # Presume that if .netrc has an entry, NNRP authentication is required.
949 import netrc namespace
950 credentials = netrc.netrc()
H A Dftplib.py936 import netrc namespace
944 # get name of alternate ~/.netrc file:
952 netrcobj = netrc.netrc(rcfile)
/third_party/curl/src/
H A Dtool_cfgable.h124 bool netrc; member
H A Dtool_getparam.c484 {"netrc", ARG_BOOL, 'n', C_NETRC},
485 {"netrc-file", ARG_FILE, ' ', C_NETRC_FILE},
486 {"netrc-optional", ARG_BOOL, ' ', C_NETRC_OPTIONAL},
2406 case C_NETRC_OPTIONAL: /* --netrc-optional */ in getparameter()
2409 case C_NETRC_FILE: /* --netrc-file */ in getparameter()
2412 case C_NETRC: /* --netrc */ in getparameter()
2413 /* pick info from .netrc, if this is used for http, curl will in getparameter()
2415 config->netrc = toggle; in getparameter()
H A Dtool_operate.c1395 else if(config->netrc || config->netrc_file) in single_transfer()
/third_party/curl/tests/
H A Druntests.pl789 $feature{"netrc"} = 1;
2743 if(($log =~ /^netrc\d+/) && ($log !~ /^netrc$testnum/)) {
/third_party/curl/lib/
H A Durldata.h537 BIT(netrc); /* name+password provided by netrc */
1562 $HOME/.netrc */
H A Durl.c66 #include "netrc.h"
2726 * option or a .netrc file, if applicable.
2748 conn->bits.netrc = FALSE;
2766 data->set.str[STRING_NETRC_FILE] : ".netrc"));
2769 failf(data, ".netrc parser error");
2773 /* set bits.netrc TRUE to remember that we got the name from a .netrc
2776 conn->bits.netrc = TRUE;
H A Dhttp.c853 || conn->bits.netrc in Curl_http_output_auth()

Completed in 29 milliseconds