This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author saffroy
Recipients brian.curtin, eric.araujo, r.david.murray, rhettinger, saffroy
Date 2011-05-30.14:04:35
SpamBayes Score 0.041149706
Marked as misclassified No
Message-id <1306764276.11.0.851217161302.issue11416@psf.upfronthosting.co.za>
In-reply-to
Content
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])
History
Date User Action Args
2011-05-30 14:04:36saffroysetrecipients: + saffroy, rhettinger, eric.araujo, r.david.murray, brian.curtin
2011-05-30 14:04:36saffroysetmessageid: <1306764276.11.0.851217161302.issue11416@psf.upfronthosting.co.za>
2011-05-30 14:04:35saffroylinkissue11416 messages
2011-05-30 14:04:35saffroycreate