From: W. Trevor King Date: Mon, 6 Sep 2010 01:22:37 +0000 (-0400) Subject: Strip all whitespace from right side of the VCS storage version string. X-Git-Tag: 1.0.0~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c378d80a27d2f6d28fe0a4ffea9cc4fce7452b0b;p=be.git Strip all whitespace from right side of the VCS storage version string. The old method failed with Windows-style \r\n endlines, etc. --- 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: