Fix bad open flag

This commit is contained in:
John Ralls 2014-04-04 19:44:55 -07:00
parent e10da882fb
commit 4164920d67

View File

@ -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