diff options
author | Guido van Rossum <guido@python.org> | 1998-03-17 21:28:21 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-03-17 21:28:21 (GMT) |
commit | 2e6938f167bc1ccd825fcad5cb610446e0c11817 (patch) | |
tree | 63eb24862b6237647992d156aac618f7634e1628 /Demo/pdist/rcslib.py | |
parent | a341fc3bf7d775a36d7d58e959f8c5d14cf6f9a1 (diff) | |
download | cpython-2e6938f167bc1ccd825fcad5cb610446e0c11817.zip cpython-2e6938f167bc1ccd825fcad5cb610446e0c11817.tar.gz cpython-2e6938f167bc1ccd825fcad5cb610446e0c11817.tar.bz2 |
Fix bug in islocked() -- it would always return 0.
Diffstat (limited to 'Demo/pdist/rcslib.py')
-rwxr-xr-x | Demo/pdist/rcslib.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Demo/pdist/rcslib.py b/Demo/pdist/rcslib.py index 43dcf0a..55d764d 100755 --- a/Demo/pdist/rcslib.py +++ b/Demo/pdist/rcslib.py @@ -225,6 +225,8 @@ class RCS: if status: raise IOError, status if not line: return None + if line[-1] == '\n': + line = line[:-1] return self.realname(name_rev) == self.realname(line) def checkfile(self, name_rev): |