bookmarks: drop superfluous strip
authorMatt Mackall <mpm@selenic.com>
Wed, 06 Jul 2011 19:25:56 -0500
changeset 14847 400ba7cccbae
parent 14846 5097d8b5078c
child 14848 09c9c120a817
bookmarks: drop superfluous strip
mercurial/bookmarks.py
--- a/mercurial/bookmarks.py	Tue Jul 05 10:20:27 2011 +0200
+++ b/mercurial/bookmarks.py	Wed Jul 06 19:25:56 2011 -0500
@@ -32,7 +32,7 @@
                     msg = _('malformed line in .hg/bookmarks: %r\n')
                     repo.ui.warn( msg % line)
                 continue
-            sha, refspec = line.strip().split(' ', 1)
+            sha, refspec = line.split(' ', 1)
             refspec = encoding.tolocal(refspec)
             try:
                 bookmarks[refspec] = repo.changelog.lookup(sha)