Fix bad open flag
This commit is contained in:
parent
e10da882fb
commit
4164920d67
@ -511,7 +511,7 @@ def find_locker_name(dirpath):
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
fname = os.path.join(dirpath, "lock")
|
fname = os.path.join(dirpath, "lock")
|
||||||
ifile = io.open(fname, 'rb', encoding='utf8')
|
ifile = io.open(fname, 'r', encoding='utf8')
|
||||||
username = ifile.read().strip()
|
username = ifile.read().strip()
|
||||||
# feature request 2356: avoid genitive form
|
# feature request 2356: avoid genitive form
|
||||||
last = _("Locked by %s") % username
|
last = _("Locked by %s") % username
|
||||||
|
Loading…
Reference in New Issue
Block a user