Using netrc when user password is blank

L

loial

I am having issues using the netrc package for users where the password is blank.
It works fine for users with password is not blank and is spacified in the .netrc

I am not sure if this is an issue with the .netrc file or my use of the .netrc package.

..netrc file looks like :

machine myserver login john password


Code is


username, ignore, password = netrc.netrc().hosts[hostname]


This fails saying the .netrc is malformed.

How should I specify the line in the .netc when the password is blank? Or is it not possible
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top