I am trying to run a piece of code using netrc lib in Python. I got examples from the Internet, but they have all failed at the first line.
import netrc
info = netrc.netrc()
Traceback (most recent call last):
File "./netrc.py", line 2, in <module>
import netrc
File "/usr/local/etc/xxx/netrc.py", line 5, in <module>
info = netrc.netrc()
TypeError: 'module' object is not callable