Commit 2e6938f1 authored by Guido van Rossum's avatar Guido van Rossum

Fix bug in islocked() -- it would always return 0.

parent a341fc3b
...@@ -225,6 +225,8 @@ class RCS: ...@@ -225,6 +225,8 @@ class RCS:
if status: if status:
raise IOError, status raise IOError, status
if not line: return None if not line: return None
if line[-1] == '\n':
line = line[:-1]
return self.realname(name_rev) == self.realname(line) return self.realname(name_rev) == self.realname(line)
def checkfile(self, name_rev): def checkfile(self, name_rev):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment