mirror of https://github.com/python/cpython.git
Fix bug in islocked() -- it would always return 0.
This commit is contained in:
parent
a341fc3bf7
commit
2e6938f167
|
@ -225,6 +225,8 @@ def islocked(self, name_rev):
|
||||||
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):
|
||||||
|
|
Loading…
Reference in New Issue