summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-03-17 21:28:21 +0000
committerGuido van Rossum <guido@python.org>1998-03-17 21:28:21 +0000
commit8bf8ff0b32dce018934b4bcdc1d0b72e75f2fed1 (patch)
tree2ec46d17e65a2f5f0ed44baa9d0a57c25dcee3cb
parent78f00f7744ebad47141ae02bb2ad0c007ff92e72 (diff)
downloadcpython-8bf8ff0b32dce018934b4bcdc1d0b72e75f2fed1.tar.gz
Fix bug in islocked() -- it would always return 0.
-rwxr-xr-xDemo/pdist/rcslib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Demo/pdist/rcslib.py b/Demo/pdist/rcslib.py
index 43dcf0a07e..55d764d298 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):