]> granicus.if.org Git - python/commitdiff
Fix bug in islocked() -- it would always return 0.
authorGuido van Rossum <guido@python.org>
Tue, 17 Mar 1998 21:28:21 +0000 (21:28 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 17 Mar 1998 21:28:21 +0000 (21:28 +0000)
Demo/pdist/rcslib.py

index 43dcf0a07ef8905ffca37d7998503be09f36d247..55d764d298aca20e5108e581acc2f7769564569c 100755 (executable)
@@ -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):