diff mercurial/sshrepo.py @ 8210:344751cd8cb8

replace various uses of list.reverse()
author Matt Mackall <mpm@selenic.com>
date Sun, 26 Apr 2009 16:50:44 -0500
parents bbc24c0753a0
children 46293a0c7e9f
line wrap: on
line diff
--- a/mercurial/sshrepo.py	Sun Apr 26 16:50:44 2009 -0500
+++ b/mercurial/sshrepo.py	Sun Apr 26 16:50:44 2009 -0500
@@ -81,8 +81,7 @@
             self.abort(error.RepoError(_("no suitable response from remote hg")))
 
         self.capabilities = set()
-        lines.reverse()
-        for l in lines:
+        for l in reversed(lines):
             if l.startswith("capabilities:"):
                 self.capabilities.update(l[:-1].split(":")[1].split())
                 break