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

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top