From c378d80a27d2f6d28fe0a4ffea9cc4fce7452b0b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 5 Sep 2010 21:22:37 -0400 Subject: [PATCH] Strip all whitespace from right side of the VCS storage version string. The old method failed with Windows-style \r\n endlines, etc. --- libbe/storage/vcs/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbe/storage/vcs/base.py b/libbe/storage/vcs/base.py index b545a4e..11ce754 100644 --- a/libbe/storage/vcs/base.py +++ b/libbe/storage/vcs/base.py @@ -985,7 +985,7 @@ class VCS (libbe.storage.base.VersionedStorage): raise libbe.storage.InvalidStorageVersion(None) if revision == None: # don't require connection return libbe.util.encoding.get_file_contents( - path, decode=True).rstrip('\n') + path, decode=True).rstrip() relpath = self._u_rel_path(path) contents = self._vcs_get_file_contents(relpath, revision=revision) if type(contents) != types.UnicodeType: -- 2.26.2