aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-09-05 21:22:37 -0400
committerW. Trevor King <wking@drexel.edu>2010-09-05 21:22:37 -0400
commitc378d80a27d2f6d28fe0a4ffea9cc4fce7452b0b (patch)
tree269ecdbdc887be271541643f645f20ad0822bd87
parent70910ac62711282502e67d31b8600bd5beb43cc9 (diff)
downloadbugseverywhere-c378d80a27d2f6d28fe0a4ffea9cc4fce7452b0b.tar.gz
Strip all whitespace from right side of the VCS storage version string.
The old method failed with Windows-style \r\n endlines, etc.
-rw-r--r--libbe/storage/vcs/base.py2
1 files changed, 1 insertions, 1 deletions
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: