Message137276
You are suggesting something like this, I suppose?
--- a/Lib/netrc.py
+++ b/Lib/netrc.py
@@ -105,8 +105,8 @@ class netrc:
def __repr__(self):
"""Dump the class data in the format of a .netrc file."""
rep = ""
- for host in self.allhosts.keys():
- for attrs in self.allhosts[host]:
+ for (host, attrlist) in self.allhosts.items():
+ for attrs in attrlist:
rep = rep + "machine "+ host + "\n\tlogin " + repr(attrs[0]) + "\n"
if attrs[1]:
rep = rep + "account " + repr(attrs[1]) |
|
Date |
User |
Action |
Args |
2011-05-30 14:04:36 | saffroy | set | recipients:
+ saffroy, rhettinger, eric.araujo, r.david.murray, brian.curtin |
2011-05-30 14:04:36 | saffroy | set | messageid: <1306764276.11.0.851217161302.issue11416@psf.upfronthosting.co.za> |
2011-05-30 14:04:35 | saffroy | link | issue11416 messages |
2011-05-30 14:04:35 | saffroy | create | |
|