diff options
author | W. Trevor King <wking@drexel.edu> | 2010-09-05 21:22:37 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-09-05 21:22:37 -0400 |
commit | c378d80a27d2f6d28fe0a4ffea9cc4fce7452b0b (patch) | |
tree | 269ecdbdc887be271541643f645f20ad0822bd87 | |
parent | 70910ac62711282502e67d31b8600bd5beb43cc9 (diff) | |
download | bugseverywhere-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.py | 2 |
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: |